sonali Posted April 5, 2013 Posted April 5, 2013 Hi all, I have written a code for testing GUI for an windows based application.The below code has to select a string from drop down list which is not working please help me to resolve this.i couldnt trace class and inatance so i use control id to handle it ControlCommand($a,"", 1150, "ShowDropDown", "") ControlCommand($a, "", 1150, "SetCurrentSelection",$strCombo2) If @error == 1 Then FileWriteLine($file, 'Error: ComboBox2 Fail') Else FileWriteLine($file, 'ComboBox2: Select Image Success') EndIf Sleep(1000)
FireFox Posted April 5, 2013 Posted April 5, 2013 Hi, Take a look at ControlGetHandle and _GUICtrlComboBox* functions. Br, FireFox.
sonali Posted April 5, 2013 Author Posted April 5, 2013 For rest of the combo box this code is working and only this combobox is no working i m not even getting its class and instance so i can get handle
FireFox Posted April 5, 2013 Posted April 5, 2013 What about this? : ControlGetHandle("title", "", "[ID:1234]") Br, FireFox.
sonali Posted April 5, 2013 Author Posted April 5, 2013 the selection in the combobox is taking tym to load the string so i treid to give dely stil its not working
FireFox Posted April 5, 2013 Posted April 5, 2013 Ewww... You're up to use the MouseClick/Send functions in a clever way. Br, FireFox.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now