Jump to content

Java UDF


matthewh
 Share

Recommended Posts

Followed the setup in the posting:

http://www.autoitscript.com/forum/index.php?showtopic=87956

My simple script is the following:

---------------------------------------------------------------

#include <Java.au3>

$result = _JavaAttachAndWait("Upload Images Into Document")

$result = _JavaObjSelect("", "File name:", "text")

$result = _JavaObjValueSet("", "File name:", "text", "01.tif")

$result = _JavaObjSelect("", "Open", "push button")

---------------------------------------------------------------

I am attaching to a java applet running inside a web page.

If I open the file dialog in the applet manually and then run the above script, the script works.

If I automate the opening of the dialog through Selenium RC (basically just having Selenium commands click the html button element that invokes the applet to show the dialog), then it doesn't work.

I know I might be criticized for posting the question on this group, but I think the problem might be in how the "AutoITJavaAccess.dll" is attaching to the process under the Selenium environment.

Thoughts? (Any ideas, leads, solutions ;-), etc. would be great)

Matthew

Link to comment
Share on other sites

Good point. I see the two browsers, but the title of the dialog window is "Uploads Images Into Document". There are no other windows with that name (at least that I can see). There shouldn't be any ambiguity conflict.

I appreciate your reply.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...