Jump to content
Sign in to follow this  
ilaya1234

Java Combobox value set

Recommended Posts

ilaya1234

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,

Ilayaraja

Share this post


Link to post
Share on other sites
hench

Hey,

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!!

Share this post


Link to post
Share on other sites
ilaya1234

Hey,

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!!

Hi,

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

Ilaya.M

Share this post


Link to post
Share on other sites
MvGulik

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 ...
 

Share this post


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
Sign in to follow this  

×