scrapy-selenium icon indicating copy to clipboard operation
scrapy-selenium copied to clipboard

How to deal with webdriver versioning issues?

Open smileservices opened this issue 2 years ago • 4 comments

I'm getting selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 88 Current browser version is 93.0.4577.63 with binary path /usr/bin/google-chrome and I can't find a solution for it. I'm sure a lot encounter this.

Is there a way to go over this and maybe get rid of specifying the driver executable? Maybe using webdriver-manager package?

smileservices avatar Mar 20 '22 05:03 smileservices

Honestly, I think the usage of the Selenium/standalone-chrome Docker container would be the best for long running code.

You can access it via the webdriver.Remote() function of Selenium, or set it up as your path for SELENIUM_COMMAND_EXECUTOR in this package, within your Scrapy settings.py.

This will help avoid chrome and driver versioning issues.

Otherwise, you can use the ChromeDriverManager package, specifically the ChromeDriverManager.install() method

DResthal avatar Jul 22 '22 19:07 DResthal

I'm getting selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 88 Current browser version is 93.0.4577.63 with binary path /usr/bin/google-chrome and I can't find a solution for it. I'm sure a lot encounter this.

Is there a way to go over this and maybe get rid of specifying the driver executable? Maybe using webdriver-manager package?

Did you find any solution to this problem? I am also facing this issue.

nit-in avatar Feb 04 '23 14:02 nit-in

Sounds like you have the incorrect ChromeDriver version for your Chrome browser version. I would double check both and that both are compatible, then double check that you're loading the driver you're expecting to load in your code.

DResthal avatar Feb 06 '23 17:02 DResthal

Sounds like you have the incorrect ChromeDriver version for your Chrome browser version. I would double check both and that both are compatible, then double check that you're loading the driver you're expecting to load in your code.

Yeah..I have been updating chromedriver according to the chrome browser version, but I want to skip the version checking or have a solution that does not require manual updating of chromedriver.

nit-in avatar Feb 07 '23 17:02 nit-in