I checked your script(which you gave as example) it's working, But still having some problem in my script.Please check
#!/usr/bin/perl use strict; use warnings; use Win32::IE::Mechanize; my $ie = Win32::IE::Mechanize->new( visible => 1 ); my $url ='http://url/go'; $ie->get( $url ); $ie->follow_link (text =>"subForm('UA_Signin','signOff')")|| die"can't + find text $!"; # $ie->find_link (url=>"javascript:subForm('UA_Signin','signOff')");
I checked it with other options
#$ie->find_link (number=>2); # $ie->find_image(image =>"ua/images/button-signoff.gif")|| die"can't + find image$!"; # $ie->find_image(alt =>" ")|| die"can't find image$!";
One thing i want to let you know while hitting on signoff button (or reference) manually ,page moves to login page but the url (at address bar)does not get changed. Hope it will help you to find out my solution. Thanks

In reply to Re^8: How do I click Javascript button with Win32::IE::Mechanize by rshrivaQ
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.