Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to select the drop down option by searching for partial text
#4
Not Solved
If GetItemCount and GetItem is not working for the weblist, I've other idea.

First check whether are you are able to get the text of the selected item by obj.getroproperty("text") and you are able to select the item of the weblist by Up and Down arrow keys, if yes then follow this

Code:
ptrn=DataTable.value("Column",dtlocalsheet)
Set re=New RegExp
re.pattern=ptrn
re.ignorecase=True
re.global=False
For i=1 to 100
Src=obj.getroproperty("text")
Set a=re.execute(Src)
If a.count>0 then
Exit for
Print Src&" selected"
else
obj.Type micdwn
End If
Next

Note: Not sure it works but it worked for me in winobjects
Reply


Messages In This Thread
RE: How to select the drop down option by searching for partial text - by kbhargava505 - 08-04-2015, 05:50 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Need to Validate Text filed is blank after clicking on the Text box balak89 3 4,905 09-13-2015, 12:06 AM
Last Post: ADITI1992
  Web Element: Not able to select value from drop down in Web Element. Rajeev 4 5,304 08-04-2015, 06:03 PM
Last Post: kbhargava505
  Click on drop down and select second option using HP UFT Tusharguru99 2 6,679 07-30-2015, 06:06 PM
Last Post: Neetha
  Drag and drop issue excellentpawan123 0 2,746 01-13-2015, 05:04 PM
Last Post: excellentpawan123
  Drop down list class is a link thotamurali 2 4,194 08-22-2014, 05:48 PM
Last Post: thotamurali

Forum Jump:


Users browsing this thread: 2 Guest(s)