【问题标题】:Selenium IDE - Showing an unexpected Alert! When generating the random email IDSelenium IDE - 显示意外警报!生成随机电子邮件 ID 时
【发布时间】:2014-09-10 23:41:08
【问题描述】:

我在 selenium IDE 中使用以下代码生成随机电子邮件。它工作正常并生成了电子邮件,但在 IDE 中显示错误,即“[错误]错误:出现意外警报![无效电子邮件地址]”

Selenium.prototype.doGenerateUserRandomEmail= function(locator)
{
var randomString= '';
randomnum=randomnum+Math.floor(Math.random() * 999);
randomString += "khushboo" + "+" + randomnum + "@ranosys.com";
selenium.doType(locator, randomString);
}

【问题讨论】:

    标签: javascript file selenium ide


    【解决方案1】:

    此错误来自您的应用程序,不是 Selenium-IDE。根据您的申请,您必须确保生成的电子邮件地址有效。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-02-01
      • 1970-01-01
      • 2016-11-03
      • 2017-05-05
      • 2019-03-24
      • 2013-09-02
      • 1970-01-01
      • 2017-09-14
      相关资源
      最近更新 更多