Perl: the Markov chain saw | |
PerlMonks |
Re^5: How do I get WWW::Mechanize::PhantomJS to wait until the JavaScript on the web page has finished executing? (update)by LanX (Saint) |
on Aug 21, 2021 at 19:30 UTC ( [id://11136013]=note: print w/replies, xml ) | Need Help?? |
> Sleep between the call to the get method and the call to the decoded_content method? I tried that. No change to the content. I can't find any decoded_content method documented in WWW::Mechanize::PhantomJS (?) Maybe try $mech->content( %options ) ? Otherwise are you sure your JS-App really works inside PhantomJS? It wouldn't be the first case of browser incompatibilities.
updateThe HTTP::Response object returned by WWW::Mechanize has a decoded_content method, I don't know how and if subclassing was done here, but I wouldn't expect that to work with JS.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|