I have problem with WWW::Mechanize::Chrome
Running included examples ends up with infinite waiting or ... e.g using included example dump-links.pl https://metacpan.org/pod/WWW::Mechanize::Chrome::Examples#Example:-dump-links.pl generates error: Could not connect to '127.0.0.1:9222': Connection refused After starting headless chrome in background: google-chrome --headless --hide-scrollbars --remote-debugging-port=9222 --disable-gpu & response from dump_links.pl: Could not connect to '127.0.0.1:9223': Connection refused Changed the code - port to connect added:
my $mech = WWW::Mechanize::Chrome->new( port => 9222, );
.. waits initialisation for ever ... I have experimented with Chrome options, WWW::Mechanize::Chrome->new %options etc etc - no results. Command line variant works well: google-chrome --headless --disable-gpu --print-to-pdf https://www.chromestatus.com/ (just for background - I was successful with similar demos from WWW::Mechanize::PhantomJS) All searches form PerlMonks, StackOverflow -- also no results. Installed environment: Ubuntu 16.04.3 LTS perl v5.22.1 Google Chrome 62.0.3202.89 also tried Chromium 64.0.3240.0 ( this was bundled with Puppeteer - all demos working fine) Any comments, suggestions ....? Thank you in advanceIvar
In reply to Problem with WWW::Mechanize::Chrome by ivartr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |