Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Verifying the contents of a Web List in QTP scipt
#3
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi ,

Use the below code.
Code:
Expected_Item="ABC"
  Items_count=Browser("....").Page(".....").WebList("select").GetROProperty("Items Count")
  For i=1 to Items_count
       Current_Item=Browser("....").Page(".....").WebList("select").GetItem(i)
       msgbox Current_Item
       If Current_Item=Expected_Item Then
            msgbox "expected item exists in WebList"
            Browser("....").Page(".....").WebList("select").Select Expected_Item
            Exit for
       End If
  Next
Reply


Messages In This Thread
RE: Verifying the contents of a Web List in QTP scipt - by sreekanth chilam - 01-29-2010, 01:09 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to clear the contents of datatable(Local or Global sheet) during runtime? srinibarati 3 13,457 11-27-2016, 10:10 PM
Last Post: EbbyNader
  create drop Down list or menu in qtp abansal 0 3,954 09-07-2012, 05:36 PM
Last Post: abansal
  QTP 11 Patches List Till date supputuri 0 9,618 12-02-2011, 10:23 PM
Last Post: supputuri
  Verifying checkpoint and set flag ritugoyal 3 6,245 01-18-2010, 06:38 PM
Last Post: ritugoyal
  Java List not being identified by QTP aditi 7 10,127 08-21-2009, 04:17 AM
Last Post: aditi

Forum Jump:


Users browsing this thread: 1 Guest(s)