Friday 17 February 2012

Selenium IDE: Random Number Generator Using Selenium IDE

Generate random number in selenium IDE

type  |  field  | javascript{Math.floor(Math.random()*11)}  

You can increase number of 1 to increase number of digits

similarly you can use for email 

type | field | javascript{"joe+" + Math.floor(Math.random()*11111) + "@gmail.com";}


No comments:

Post a Comment