executable_path has been deprecated in Selenium 4 and is no longer usable: https://github.com/SeleniumHQ/selenium/issues/9125. This makes _init_chrome_driver fail every time with the following message for me: WebDriver.__init__() got an unexpected keyword argument 'executable_path'. (note that without removing the error handling you would not see this message because it falls back to Firefox)
This PR changes to executable_path argument to equivalent service argument.
executable_path
has been deprecated in Selenium 4 and is no longer usable: https://github.com/SeleniumHQ/selenium/issues/9125. This makes _init_chrome_driver fail every time with the following message for me:WebDriver.__init__() got an unexpected keyword argument 'executable_path'
. (note that without removing the error handling you would not see this message because it falls back to Firefox)This PR changes to
executable_path
argument to equivalentservice
argument.