Wednesday, February 9, 2011

Generating Random numbers in Selenium IDE

Following is the Selenese command to generate random numbers in Selenium IDE.



<tr>
    <td>storeEval</td>
    <td>javascript{Math.floor(Math.random()*11)}</td>
    <td>randomnumber</td>
</tr>
<tr>
    <td>echo</td>
    <td>${randomnumber}</td>
    <td></td>
</tr>

1 comment: