Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Verifying the contents of a Web List in QTP scipt
#5
Solved: 11 Years, 3 Months, 3 Weeks ago
ExpectedResult="Sales"
ItemCount=Browser("OrangeHRM").Page("OrangeHRM_2").WebList("leaveList[cmbSubunit]").GetROProperty("all items")
itensplit=split(ItemCount,";")
For i = 1 To UBound(itensplit) Step 1
actualResult=Browser("OrangeHRM").Page("OrangeHRM_2").WebList("leaveList[cmbSubunit]").GetItem(2)
If actualResult=ExpectedResult Then
MsgBox "Elemet Found"
Browser("OrangeHRM").Page("OrangeHRM_2").WebList("leaveList[cmbSubunit]").Select "Sales"
Exit for

End If

Next
Reply


Messages In This Thread
RE: Verifying the contents of a Web List in QTP scipt - by Vijay Kumar - 10-07-2016, 12:23 AM

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,244 01-18-2010, 06:38 PM
Last Post: ritugoyal
  Java List not being identified by QTP aditi 7 10,122 08-21-2009, 04:17 AM
Last Post: aditi

Forum Jump:


Users browsing this thread: 2 Guest(s)