|
|
| We don't bite newbies here... much | |
| PerlMonks |
WWW::Mechanize::Firefox follow link with javascriptby Anonymous Monk |
| on Dec 10, 2012 at 13:25 UTC ( #1008098=perlquestion: print w/ replies, xml ) | Need Help?? |
|
Anonymous Monk has asked for the
wisdom of the Perl Monks concerning the following question:
I am using WWW::Mechanize::Firefox and want to follow a link on a page that uses javascript. I have tried using the follow_link function, Firefox shows the linked page but the Perl code hangs.
If I add synchronize => 0 then it continues but the html in $mech->contents is not updated.
I have also tried using the click call with the following code but I get the error message "Can't locate object method "__click" via package "WWW::Mechanize::Link"..."
And with the following code the error message is "Can't locate object method "click" via package "WWW::Mechanize::Link"..."
Any help with the correct method to use would be very much appreciated.
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||