Skip to navigation
System requirements to run selenium headless chrome
19.03.25
To run selenium with headless chrome, you don't need a GUI or graphical X server installed. But you need the below listed libraries installed, what chrome needs to work. As selenium not gave me the direct chrome errors, I test chrome binary itself in headless mode. with the latest selenium 4.x, Selenium will download for your the chromedriver and chrome into the folder: ``` ~/.cache/selenium `` example ``` ~/.cache/selenium/chrome/linux64/134.0.6998.88/chrome ``` ## How to perform a headless chrome test: ``` cd ~/.cache/selenium/chrome/linux64/134.0.6998.88/ #./chrome --headless--disable-gpu --no-sandbox https://myridia.com ``` Chrome library required and my tools ``` apt-get install -y curl wget apt-utils openssh-server build-essential checkinstall libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev libpython3-all-dev git libglib2.0-0 libnss3 libatk1.0 libatk-bridge2.0-0 libcups2 libxcomposite1 libxdamage1 libxfixes3 libxrandr2 libgbm1 libxkbcommon0 libpango-1.0-0 libcairo2 libasound2 ```
https://developer.chrome.com/docs/chromium/headless
Reply
Anonymous
Information Epoch 1748704121
Using text data files.
Home
Notebook
Contact us