I have an error:
Error: Type: <class 'selenium.common.exceptions.SessionNotCreatedException'>
Message: session not created: This version of ChromeDriver only supports Chrome version 96
Current browser version is 98.0.4758.82 with binary path .....
To get latest driver I'm using this code:
browser = webdriver.Chrome(ChromeDriverManager().install(),options=options)
Why on my local machine and one of the VMs, it will get the latest (version 98...) and on one of the VM, it will get only version 96.
- Is it something that need to be changed on VM to make it work correctly?
P.S. Two VMs are identical copies.
CodePudding user response:
The VM in which you observe:
google-chrome is updated to the latest version. Hence, Webdriver Manager detects Chrome v98.0 and accordingly downloads the matching ChromeDriver v98.0.4758
Where as the VM in which you observe:
google-chrome haven't been updated since Chrome v96.0 and possibly auto-upgrade is disabled. Hence, Webdriver Manager detects Chrome v96.0 and accordingly downloads the matching ChromeDriver v96.0.4758
CodePudding user response:
If you are using Chrome version 98, download ChromeDriver 98.0.4758.80
https://chromedriver.chromium.org/downloads
Download Option 2.