How to verify successful installation of Chrome headless on Ubuntu?


I have installed chrome headless on Ubuntu, before start running my webdriver applications, I want to cross-check whether or not the installation successful.
How can I check that?

1 Answer

5 years ago by

  1. First, run the following command
google-chrome-stable -version

This should print the Google Chrome version like following

$ google-chrome-stable -version
Google Chrome 76.0.3809.132 
  1. Run the following command to open a website using Google Chrome and see whether or not you are seeing the response
google-chrome-stable --headless --disable-gpu --dump-dom https://www.google.com/

If you see the HTML response then your installation is perfect!

5 years ago by Karthik Divi