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
Thanks
Aditya
|
how can we randomly select the values from a drop down box.
|
|
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
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.
Thanks Its Working
![]() Aditya
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.
|
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads… | |||||
| Thread | Author | Replies | Views | Last Post | |
| Need to verify the drop down values based on condition | santhoshmscsoftware | 1 | 3,368 |
05-04-2016, 11:28 PM Last Post: supputuri |
|
| How to select the drop down option by searching for partial text | Neetha | 4 | 9,765 |
08-04-2015, 08:55 PM Last Post: Neetha |
|
| Web Element: Not able to select value from drop down in Web Element. | Rajeev | 4 | 5,928 |
08-04-2015, 06:03 PM Last Post: kbhargava505 |
|
| Click on drop down and select second option using HP UFT | Tusharguru99 | 2 | 7,164 |
07-30-2015, 06:06 PM Last Post: Neetha |
|
| Drag and drop issue | excellentpawan123 | 0 | 2,995 |
01-13-2015, 05:04 PM Last Post: excellentpawan123 |
|