Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Random Values from Drop-Down
#4
Solved: 10 Years, 10 Months, 2 Weeks ago
If your case is that you dont care what the value is selected then you may use the RandomNumber and assign that value as an index to be selected.
Let's say you have 20 manufacture's names in the dropwdown and you have to select anything each time you run the script.
Code:
sRandNum = RandomNumber(1,20)
Browser("e.........Login").Page("...........").WebList("Manufacturer").Select sRandNum
Does this help?
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply


Messages In This Thread
Random Values from Drop-Down - by profqa - 12-06-2013, 08:25 AM
RE: Random Values from Drop-Down - by basanth27 - 12-06-2013, 08:29 AM
RE: Random Values from Drop-Down - by profqa - 12-06-2013, 08:44 AM
RE: Random Values from Drop-Down - by basanth27 - 12-06-2013, 08:55 AM
RE: Random Values from Drop-Down - by profqa - 12-06-2013, 08:59 AM
RE: Random Values from Drop-Down - by basanth27 - 12-06-2013, 09:01 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Need to verify the drop down values based on condition santhoshmscsoftware 1 2,906 05-04-2016, 11:28 PM
Last Post: supputuri
  Drag and drop issue excellentpawan123 0 2,744 01-13-2015, 05:04 PM
Last Post: excellentpawan123
  Drop down list class is a link thotamurali 2 4,171 08-22-2014, 05:48 PM
Last Post: thotamurali
  Create a random number starting with an alphabet QTPmate 4 4,162 07-31-2014, 09:29 AM
Last Post: QTPmate
  Selecting values from drop down using QTP. prempujaripati 2 46,753 06-26-2014, 06:06 PM
Last Post: rasmirani

Forum Jump:


Users browsing this thread: 1 Guest(s)