

Be sure to check them out if you need any assistance. You can find many articles on these topics on. To try out the commands and examples from this article, you must have,ġ) A Linux distribution (preferably Ubuntu) installed on your computer.Ĥ) Google Chrome installed on your computer. I will use the Selenium Python library and write the Selenium scripts using the Python 3 programming language. In this article, I am going to show you how to run Selenium with the Chrome web browser in headless mode.

using the Chrome web browser in Linux servers where you don’t have any graphical desktop environment installed. So, Selenium can do web automation, web scrapping, browser tests, etc. In this mode, the Chrome web browser will run without any graphical user interface. Luckily, you can configure Selenium to run the Chrome web browser in headless mode. But if you want to run your Selenium script in a headless environment (i.e., Ubuntu Server, CentOS/RHEL Server) where you don’t have any graphical desktop environment installed, then this won’t work. It is not a problem when you’re running your Selenium script from a Linux graphical desktop environment (i.e., GNOME 3, KDE, XFCE4). If you want to do Selenium web automation or web scrapping with Chrome web browser, it runs the graphical version of the Chrome web browser by default.
