Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How To Find Dropdown Object based on Values from the dropdown list
#12
Solved: 11 Years, 3 Months, 3 Weeks ago
I would use Instr method to find out if the list item present in the list or not.

Code:
DropDownItems=Browser("INTEGRATION").Page(INTEGRATION").WebList("frm:tabView:integratedLocalAcc_5").GetROProperty("all items")
DropDownItems = ";" & DropDownItems

'Now use instr to check if the searching list item is there in the list
ListItemToValidate = "Four"

If Instr(DropDownItems,";" & ListItemToValidate & ";")>0 Then
  Msgbox "here goes your pass result"
Else
  Msgbox "here goes your fail result"
End If
Let me know if you have any questions.
Thanks,
SUpputuri
Reply


Messages In This Thread
RE: How To Find Dropdown Object based on Values from the dropdown list - by supputuri - 10-03-2017, 02:28 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  how to select value from google search box dropdown +QTP prajyot 0 2,897 06-28-2017, 06:30 PM
Last Post: prajyot
  Trying to create List box in excel sheet at Run time with values yes No JACKSPARROW 0 1,707 01-17-2017, 11:05 AM
Last Post: JACKSPARROW
  General Object Error(Find Object Error) akhandesh 1 3,595 02-24-2016, 01:05 PM
Last Post: sindhus
  Compare second web list value according to the first web list value roselin6 1 2,838 10-07-2015, 09:14 PM
Last Post: supputuri
  Problem selecting in a dropdown menu during playback. qemls29 9 13,029 07-28-2015, 05:44 PM
Last Post: Sharan

Forum Jump:


Users browsing this thread: 1 Guest(s)