Using Python selenium in a headless Ubuntu terminal produces an error stating Chrome is absent. I expected only the driver was needed. How can I resolve this issue?
hey, looks like your driver cant find the chrome binary. try installing google chrme or point your selenium settings to its correct path. might help u get it working.
The issue you’re encountering appears to originate from an assumption about the Chrome binary being available automatically. My experience with headless Ubuntu setups showed that simply installing the driver isn’t enough. You must have either Google Chrome or Chromium installed on your system. In my case, installing Chromium and then specifying its path in the Selenium configuration resolved the error. Additionally, I found that enhancing the configuration with arguments like ‘–no-sandbox’ and ‘–disable-dev-shm-usage’ improved stability in a no-GUI environment.