Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^3: How do I get WWW::Mechanize::PhantomJS to wait until the JavaScript on the web page has finished executing?by LanX (Saint) |
on Aug 21, 2021 at 11:11 UTC ( [id://11136001]=note: print w/replies, xml ) | Need Help?? |
Using one of the selectors in
WWW::Mechanize::PhantomJS to find a "finished" characteristic (DOM element or attribute or combination or ...) should return an empty result unless it exists. (See all EXTRACTION-METHODS) And even if this didn't work, you could ->eval your own JS-code which does those checks in a loop for you and only returns after success.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|