Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how can we randomly select the values from a drop down box.
#1
Solved: 10 Years, 9 Months ago
Let's say We are testing a form and in the form a drop down field is there along with other fields. In our test how can we randomly select the values from the drop down box.


Thanks
Aditya
Reply
#2
Solved: 10 Years, 9 Months ago
Hi ,

Follow the below procedure :

Step1 : Find the no. of items(Items Count) of the dropdown.
Step2 : Say No. of items in dropdown are 10 ( 0 to 9)
Step3 : Use Random Number method as --> Select RandomNumber(0,9)

Now check it out & see ....it works fine.
Reply
#3
Solved: 10 Years, 9 Months ago Smile 
Thanks Its Working Smile

Aditya
Reply
#4
Solved: 10 Years, 9 Months ago
What should we do in the case if we want to check or uncheck the checkbox randomly as Select RandomNumber() does not work with it.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Need to verify the drop down values based on condition santhoshmscsoftware 1 2,707 05-04-2016, 11:28 PM
Last Post: supputuri
  How to select the drop down option by searching for partial text Neetha 4 8,261 08-04-2015, 08:55 PM
Last Post: Neetha
  Web Element: Not able to select value from drop down in Web Element. Rajeev 4 4,994 08-04-2015, 06:03 PM
Last Post: kbhargava505
  Click on drop down and select second option using HP UFT Tusharguru99 2 6,440 07-30-2015, 06:06 PM
Last Post: Neetha
  Drag and drop issue excellentpawan123 0 2,595 01-13-2015, 05:04 PM
Last Post: excellentpawan123

Forum Jump:


Users browsing this thread: 1 Guest(s)