Corion / WWW-Mechanize-Chrome

automate the Chrome browser

Home Page:https://metacpan.org/release/WWW-Mechanize-Chrome

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to install

daw3gr opened this issue · comments

Hello! Been trying for a day to install this module on a brand new ubuntu 22.04 with both Google Chrome/122.0.6261.128 and its chrome driver downloaded from https://googlechromelabs.github.io/chrome-for-testing/#stable .

Have tried with cpan, cpanm and source, without and with chrome running (with --remote-debugging-port=9222) and with and without CHROME_BIN=/usr/bin/google-chrome-stable and installing from root or non root.

Chrome runs ok on display and can curl localhost:9222 if chrome is running with the flag above which gives an empty response.

The output of make test is always the same:
Failed on Chrome version 'Google Chrome/122.0.6261.128': Could not read websocket endpoint from Chrome output. Do you maybe have a non-debug instance of Chrome already running? at /home/user1/WWW-Mechanize-Chrome-0.72/blib/lib/WWW/Mechanize/Chrome.pm line 1078.

The chrome driver is not required for WWW::Mechanize::Chrome to install.

Do you maybe have a non-debug instance of Chrome already running?

I've ended up being able to install it from source and as root. I think the problem may have arisen from installing from cpan or cpanm running the browser as root. No, there were no other instances of chrome running and now after installing Im able to run multiple windows concurrently by using different user directories. Many thanks for the module, will update if I find the root cause of the installation issue, pun intended :)

Oh - yes, I'm now looking at hardening the self-tests so they skip the problematic steps when running as root

This should be fixed with v0.73

Ace! 🥇