Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to select item from weblist?
#3
Solved: 11 Years, 6 Months, 3 Weeks ago
Intresting. It should select the value based on what you supply. The above statement looks absolutely fine to me.

Does it throw any error message ?

can you try ,
code:
Code:
Browser("Calendar").Page("Calendar").WebList("Hour").Highlight
Browser("Calendar").Page("Calendar").WebList("Hour").Select "8"
Or you can overwrite QTP's select function by using your own select,

1. Grab all the items in the list by using the value property.
2. Split the values if they are semicolon separated.
3. Compare the value which you need to select vs the value in the split array.
4. Select based on the index.

this is a foolproof method because the index does not get hardcoded here. so, inspite of the shift in the value location it will still select the right one.
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
How to select item from weblist? - by SS001 - 06-09-2010, 09:25 AM
RE: How to select item from weblist? - by basanth27 - 06-09-2010, 10:21 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  WEBLIST shayk1985 3 5,794 05-17-2018, 11:49 AM
Last Post: Ankur
  Cannot identify the specified item Beginner 0 2,559 06-22-2017, 04:55 PM
Last Post: Beginner
  [UFT] SwfObject as Toolbar: select item without coordinates felino 0 3,397 11-27-2015, 03:09 PM
Last Post: felino
  WinListView set item command Shahino007 0 2,695 10-06-2015, 03:57 PM
Last Post: Shahino007
  Weblist selection diya 11 21,804 06-16-2015, 08:27 PM
Last Post: rajpradeep32

Forum Jump:


Users browsing this thread: 1 Guest(s)