ilaya1234 Posted July 8, 2011 Posted July 8, 2011 (edited) Hi All, I am trying to automate a java application which has many combo boxes without name. JAVA Ferret couldn't recognize the combo boxes. However i tried to select value from the combo boxes using the below code, Its woking fine with the first combo box but not working for the second combo box. can any one of you suggest me how i can instruct AutoIT to recognize the second combo box? I have attached the snapshot of my application & java ferret, Java monkey properties with this post. any guidance will be highly appreciated. --------------- ;For Combo1 --------------- $java_obj1 = _JavaObjSelect("", "", "combo box", 1) $java_obj1 = _JavaObjValueSet("", "", "combo box", 1) --------------- ;For Combo2 --------------- $java_obj2 = _JavaObjSelect("", "", "combo box", 2) $java_obj2 = _JavaObjValueSet("", "", "combo box", 1) Thanks and Regards, IlayarajaCombobox issue.zip Edited July 8, 2011 by ilaya1234
PsaltyDS Posted July 8, 2011 Posted July 8, 2011 Ref: in Example Scripts Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
ilaya1234 Posted July 11, 2011 Author Posted July 11, 2011 Ref: in Example ScriptsHi, I am creating the scripts based on the JAVA.au3 only. The script (For Combo2) is selecting the second combo box but its trying to set the value in first combo box instead of setting the value in second combo box. can any one of you please help me resolve this issue. ---------------;For Combo1---------------$java_obj1 = _JavaObjSelect("", "", "combo box", 1)$java_obj1 = _JavaObjValueSet("", "", "combo box", 1)---------------;For Combo2---------------$java_obj2 = _JavaObjSelect("", "", "combo box", 2)$java_obj2 = _JavaObjValueSet("", "", "combo box", 1) Thanks and Regards,Ilayaraja.M
ilaya1234 Posted July 11, 2011 Author Posted July 11, 2011 Hi, I am creating the scripts based on the JAVA.au3 only. The script (For Combo2) is selecting the second combo box but its trying to set the value in first combo box instead of setting the value in second combo box. can any one of you please help me resolve this issue. ---------------;For Combo1---------------$java_obj1 = _JavaObjSelect("", "", "combo box", 1)$java_obj1 = _JavaObjValueSet("", "", "combo box", 1)---------------;For Combo2---------------$java_obj2 = _JavaObjSelect("", "", "combo box", 2)$java_obj2 = _JavaObjValueSet("", "", "combo box", 1) Thanks and Regards,Ilayaraja.MIt worked. I have to add the Instance parameter like given in the code below.---------------;For Combo1---------------$java_obj1 = _JavaObjSelect("", "", "combo box", 1)$java_obj1 = _JavaObjValueSet("", "", "combo box", 1,1)---------------;For Combo2---------------$java_obj2 = _JavaObjSelect("", "", "combo box", 2)$java_obj2 = _JavaObjValueSet("", "", "combo box", 1,2)
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