Friday, February 13, 2015

How to generate random number in selenium IDE

  Subscribe to get Updates Enter your email address:


Delivered by Mindq Software Testing Tutorials
How to generate random number in selenium ide

To generate random number in selenium we need to use javascript in command like this 

Here iam using store command to store random value 


CommandTargetValue
storejavascript{Math.floor(Math.random()*11)}R
echo${R}


 Random value will get stored in the variable R.

With the help of echo command we can print value of R

No comments:

Post a Comment