Hi all.

I'm trying to do some web automation with WWW::Mechanize. Basically I'm trying to access the upload page on Gather.com and upload a photo--by automating this, I could upload photos to the site from a mobile phone which doesn't support Java (send photos to email, have a script take them and upload).

WWW:Mechanize seems like the obvious choice, but the uploading menu on the site is actually a Java applet which opens a Java dialog to select files. WWW::Mechanize doesn't detect this, so it can't handle the selection of an actual file. I tried to intercept AJAX requests and whatnot to do this directly, but I'm not seeing anything useful going to the server.

Is there any programmatic way to automatically interact with a Java applet? A module would be perfect--command line tools might be an option too...

Any ideas? Thanks, Tom

In reply to Automation and Java Applet by Tomcat7194

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.