Khushboo Chaudhary
Khushboo Chaudhary

Reputation: 95

Selenium IDE - Showing an unexpected Alert! When generating the random email ID

I am using below code in selenium IDE for generate random email. Its working fine and email was generated but showing an error in IDE i.e. "[error] Error: There was an unexpected Alert! [Invalid Email Address]"

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

Upvotes: 0

Views: 118

Answers (1)

SiKing
SiKing

Reputation: 10329

This error is coming from your application, not Selenium-IDE. You have to make sure the email address that you are generating is valid, as per your application.

Upvotes: 2

Related Questions