Forum Discussion
Since you mention that you are able to open the dropdown, you can use one of these 2 methods to select and item:
1) ComboBox_SelectItemData : https://msdn.microsoft.com/en-us/library/windows/desktop/bb856482(v=vs.85).aspx
2) ComboBox_SelectString : https://msdn.microsoft.com/en-us/library/windows/desktop/bb856483%28v=vs.85%29.aspx
I'm using Test Complete for desktop and VBScript (scripting language).
I can use call tile.Combobox.CComboBox_SelectString(Param1 as Integer, Param2 as Byte) as Integer
Can you give me an example how can I use it to select lets say the option "Reports" from the Combobox?
- djadhav9 years agoRegular Contributor
tile.Combobox.CComboBox_SelectString(0, "Reports")
- ioioio9 years agoOccasional Contributor
If I use tile.Combobox.CComboBox_SelectString(0, "Reports") I receive the following error "Type mismatch: 'tile.Combobox.CComboBox_SelectString'" ; Param1 is defined as Integer and Param2 is defined as Byte. I don't know what Param2 refers to.
Related Content
- 3 years agoramprabhus