farizrahman4u / loopgpt

Modular Auto-GPT Framework
MIT License
1.43k stars 131 forks source link

Fix webdriver.Chrome: executable_path has been deprecated #56

Open Calvin-Xu opened 1 year ago

Calvin-Xu commented 1 year ago

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.