Perl-Sensitive Sunglasses | |
PerlMonks |
How do I get WWW::Mechanize::PhantomJS to wait until the JavaScript on the web page has finished executing?by Darth Ed (Beadle) |
on Aug 20, 2021 at 20:36 UTC ( [id://11135995]=perlquestion: print w/replies, xml ) | Need Help?? |
Darth Ed has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to use WWW::Mechanize::PhantomJS with a JavaScript-heavy web application. The decoded_content that WWW::Mechanize::PhantomJS returns shows the web page in an unfinished state. How do I get WWW::Mechanize::PhantomJS either to wait until the JavaScript on the web page has finished executing or to just wait a couple seconds after the page loads when I $mech->get? Thanks!
Back to
Seekers of Perl Wisdom
|
|