I have told you a couple of times to note the differences between the $ie->find_link() method, which for some reason you insist on using, and the $ie->follow_link() method. In your previous examples where you failed to show us any of the JavaScript clicking an image ran a JavaScript function. Now for some reason this seems to have changed and you just want to submit a form? Regardless...

First off, please read and understand the Win32::IE::Mechanize documentation, I appreciate that this may not be easy if English is not your native language.

Once again you are using $ie->find_link(); which does not click a link, it returns an object describing the link.

If you read the Win32::IE::Mechanize documentation you will see that there is an entire section of form methods, and examples for populating fields and submitting forms using the $ie->submit_form() method. I suggest you go read up on how to use this to populate these fields, and submit the form. There is an example in the synopsis showing exactly how to do this.

Update: typo s/not to note/to note/

Hope this helps

Martin

In reply to Re^12: How do I click Javascript button with Win32::IE::Mechanize by marto
in thread How do I click Javascript button with Win32::IE::Mechanize by rshrivaQ

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.