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
Random value will get stored in the variable R.
With the help of echo command we can print value of R
To generate random number in selenium we need to use javascript in command like this
Here iam using store command to store random value
Command | Target | Value |
store | javascript{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