On my script I find that the Text contents of a combo list box are mapped in the following manner
ComboListBox Click, "ObjectIndex=0", "ItemData=21790580"
How do I ensure that this 21790580 corresponds to the text I want. Supposed this is mapped to A.
How do I know what is the ItemData for B.
If you look at the Robot Online Help for ComboListBox you will note that the parameter can Coords, Index, ItemData, Position or Text.
Try manipulating your code to use text or index.
Further you can write your own code to extract the data from the CBL the write code to parse that data and pick what you want it to pick.
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!
I've tried using text or index and I'm still having problems. But I'm using IE7 and Robot doesn't support listboxes per the release notes. Has anyone gotten this to work anyway?
Robot supports IE7 pretty well when it is all patched up. I am using 18.104.22.168 -IFIX01 with IE7 very successfully.
Just FYI, This is Robot code stripped from an IE7 AUT that selects a combo box then clicks the corresponding text in the list box.
ComboBox Click, "Name=ctl00$ContentPlaceHolder$LoginCtrl$ddlDomain s", ""
ComboListBox Click, "Name=ctl00$ContentPlaceHolder$LoginCtrl$ddlDomain s", "Text=" & strDomain