Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to deal with webdriver versioning issues? #112

Open
smileservices opened this issue Mar 20, 2022 · 4 comments
Open

How to deal with webdriver versioning issues? #112

smileservices opened this issue Mar 20, 2022 · 4 comments

Comments

@smileservices
Copy link

smileservices commented Mar 20, 2022

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?

@DResthal
Copy link

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

@nit-in
Copy link

nit-in commented Feb 4, 2023

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.

@DResthal
Copy link

DResthal commented Feb 6, 2023

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.

@nit-in
Copy link

nit-in commented Feb 7, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants