I am stuck for last two days in a script where I need to make a selection from Combolistbox. (ASPX WebPage)
When I recoreded the object properties I have the following relevant information
id - Select1
tagName - Select
SelectedIndex - 0
Type - select-one
value - |111| (For other list items it is |112| & |113|)
name - bus_unit
When I recorded the action (of selecting the item from the combo box) I got the following line of code
Combolistbox click, "ObjectIndex=0", "ItemData=309057924"
Note: In the object properties for the combobox there is no attribute as ItemData or ObjectIndex.
Also the Attribute Itemdata seems to be generated at run time.
I also tried with
Combolistbox click, "ObjectIndex=0", "selectedIndex=1"
Combolistbox click, "ObjectIndex=0", "Value=|111|"
and other combination which I could.
But was either getting a syntax error or Object recognition Failure Message.
It will be real helpful if someone can help me with the above issue.
Also Will like to know why cant be pipe used | in the query.
Since your properties show that there is a valid ID for this combobox I would suggest changing your click from using the ObjectIndex to using the ID.
Just incase something changes in your app, by using the ID you will be assured you are always working against the same object everytime. You do not have that assurance by using ObjectIndex.