Jump to content

Java Combobox value set

Recommended Posts

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,


Link to post
Share on other sites


Can you access ComboBox 1 to ComboBox 2 using Tab key ?

You may want to send tab keys to that window/control - dirty but efficient !

Check help file for Send / ControlSend !

Good luck!!


Thanks. This is Java application so we can't use the control send function here since we dont know the "classnameNN" properties.


Link to post
Share on other sites

This don't belongs in "Example Scripts"

Go as user (ALSO) double posted it.

:) (This is one reason to "Just Don't" double post ...)

Edited by iEvKI3gv9Wrkd41u

"Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions."
"The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014)

"Believing what you know ain't so" ...

Knock Knock ...

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...