webfp / tor-browser-selenium

Tor Browser automation with Selenium.
MIT License
528 stars 101 forks source link

error with selenium 4.11 and driver #197

Closed druzy closed 9 months ago

druzy commented 10 months ago

There is a error with the new selenium. See : https://github.com/webfp/tor-browser-selenium/issues/195 I find a temporary solution. In tbdriver.py line 34 change executable_path="geckodriver" to executable_path="/usr/bin/geckodriver" And it work and i don't know why.

gunesacar commented 9 months ago

Thanks for the report. Starting from version 4.11 Selenium stopped expanding the executable_path initialization parameter into an absolute path (for geckodriver). We now pass the return value of shutil.which: https://github.com/webfp/tor-browser-selenium/commit/8c3fa94a185f5884454e7fc918551dc54b04f60c