Forum Discussion
IF the object has Visible and VisibleOnScreen both as false, that means a user cannot see the object. Hence clicking it does not mimic any user scenario. What exactly are you trying to test? Is it possible to attach some screenshots for better understanding?
- ioioio10 years agoOccasional Contributor
I want to click on "..." button and select an option from the list.
- djadhav10 years agoRegular Contributor
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
- ioioio10 years agoOccasional Contributor
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?
- osaid_ahmad10 years agoContributor
Hi,
I dont know much about desktop testing but a way around is if you are able to open the dropdown then you can try using Sys.Keys [Down] and Sys.Keys[Enter] to select the desired option.
- djadhav10 years agoRegular Contributor
Try this:
DIM selectStr selectStr = "Reports" tile.Combobox.CComboBox_SelectString(0, selectStr)