richardyc / Chrome-GPT

An AutoGPT agent that controls Chrome on your desktop
GNU General Public License v3.0
1.66k stars 208 forks source link

Selenium error on Chrome version #12

Open leolivier opened 1 year ago

leolivier commented 1 year ago

When starting chromeGPT, I get the following error:

selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 111
Current browser version is 113.0.5672.63 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe
ethanthai2 commented 1 year ago

You could try adding these 2 lines inside selenium.py file. It could help you update new version of Chrome.

from webdriver_manager.chrome import ChromeDriverManager

## Line 46
self.driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=options)