Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
use v5.10; use WWW::Mechanize::Firefox; use strict; use warnings; my $mech = WWW::Mechanize::Firefox->new(); $mech->update_html(<<HTML); <script type="text/javascript"> function myFunction() { alert("Hello World!"); } </script> HTML sleep 2; $mech->eval_in_page( 'myFunction();' );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Executing JavaScript function using WWW::Mechanize::Firefox
by Anonymous Monk on Feb 17, 2016 at 01:55 UTC | |
by Anonymous Monk on Feb 17, 2016 at 02:18 UTC | |
by Anonymous Monk on Feb 17, 2016 at 02:26 UTC | |
by Anonymous Monk on Feb 17, 2016 at 02:44 UTC | |
by Anonymous Monk on Feb 17, 2016 at 03:03 UTC | |
|