I still don't know why selenium cannot find a driver even if I provide
the path to it via a Service class:

service = ChromeService()
service.executable_path = r"/usr/bin/chromedriver"
driver = webdriver.Chrome(options=opts, service=service)

But I got it working via the selenium-manager CLI [1]. I installed via:

cargo install --path .

then added the path to rust binaries to my PATH and exported
SE_MANAGER_PATH like this:

export SE_MANAGER_PATH=/home/user/.cargo/bin/selenium-manager

Looks like Arch Linux created a dedicated package for this CLI tool
[2] and we need it for Debian too.

[1] https://github.com/SeleniumHQ/selenium/tree/trunk/rust
[2] https://aur.archlinux.org/packages/selenium-manager

Reply via email to