Random Value from Combo Box - Selenium IDE

250 views
Skip to first unread message

Engr. Riaz Ahmed Memon

unread,
Apr 2, 2011, 2:49:05 AM4/2/11
to seleniu...@googlegroups.com
Hi,
Kindly do let me know, how I can select a random value from combo box. Combo box contains thousands of values. What I need every time a random value should be selected when test is executed.

Regards.
RM.

Scal

unread,
Apr 4, 2011, 3:52:43 PM4/4/11
to Selenium Users
In the IDE you can use, for example, storeEval() to wich you can pass
a JS script that will generate the random number and store it into a
local variable, let's say "rndNumber".
You can then use the variable (${rndNumber}) in a later command
(selecting the random box by index)

On Apr 2, 8:49 am, "Engr. Riaz Ahmed Memon"
Reply all
Reply to author
Forward
0 new messages