08-04-2015, 05:50 PM
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
Note: Not sure it works but it worked for me in winobjects
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