I have problem with WWW::Mechanize::Chrome
Running included examples ends up with infinite waiting or ...
e.g using included example dump-links.pl
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.
Ubuntu 16.04.3 LTS
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 advance