Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Verifying the contents of a Web List in QTP scipt
#3
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 14,753 11-27-2016, 10:10 PM
Last Post: EbbyNader
  create drop Down list or menu in qtp abansal 0 4,607 09-07-2012, 05:36 PM
Last Post: abansal
  QTP 11 Patches List Till date supputuri 0 10,170 12-02-2011, 10:23 PM
Last Post: supputuri
  Verifying checkpoint and set flag ritugoyal 3 7,339 01-18-2010, 06:38 PM
Last Post: ritugoyal
  Java List not being identified by QTP aditi 7 11,920 08-21-2009, 04:17 AM
Last Post: aditi

Forum Jump:


Users browsing this thread: 1 Guest(s)