Just use it in headless mode:

WebDriver errors - check if Chrome is installed and working

If you get WebDriver errors, first make sure that you can run the Chrome binary from the command line.

Replace /path/to/your/google-chrome with your path to Chrome.

/path/to/your/google-chrome e --headless --disable-gpu --dump-dom https://bitcoin.org/ | head -n 20 | grep "Bitcoin"

The output should be something like:

Bitcoin - Open source P2P money

If it does not work, use your operating system's package manager to install Chrome and all the required libraries.

Reply to this note

Please Login to reply.

Discussion

No replies yet.