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

browser version not matching chromedriver #109

Closed
borgified opened this issue Jan 27, 2024 · 4 comments
Closed

browser version not matching chromedriver #109

borgified opened this issue Jan 27, 2024 · 4 comments

Comments

@borgified
Copy link
Contributor

safeway-coupons-safeway-coupons_test-1    | from session not created: This version of ChromeDriver only supports Chrome version 121
safeway-coupons-safeway-coupons_test-1    | Current browser version is 120.0.6099.109

because of this mismatch i couldnt get it to run. i tried using ghcr.io/smkent/safeway-coupons:latest, 0.2.9 and 0.2.8 with similar mismatching results.

i think this is because the webdriver-manager is not 4.0.1. after i made this change and rebuilt the container, i was able to make it log into the site:

$ git diff
diff --git a/pyproject.toml b/pyproject.toml
index 16d307b..9fce79b 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -22,7 +22,7 @@ python = "^3.8"
 dataclasses-json = "*"
 requests = "*"
 selenium = "^4.10"
-webdriver-manager = "^3.8.6"
+webdriver-manager = "^4.0.1"
 undetected-chromedriver = "^3.5.0"

im not familiar with webdriver-manager so im not sure if this is the right solution, if it is, im happy to create a PR if it helps.

@smkent
Copy link
Owner

smkent commented Jan 28, 2024

I'm seeing this too and I've been confused by similar issues in the past, which have been resolved by rebuilding the container.

I found this which explains that undetected-chromedriver (oddly) downloads the driver at runtime. Apparently it's possible to pin the Chrome version in code, so I'll look at doing that dynamically based on the version downloaded at container build time. I wonder if there's a way to pre-download and/or permanently cache the driver as well.

@smkent
Copy link
Owner

smkent commented Jan 28, 2024

#110 should resolve this.

@smkent
Copy link
Owner

smkent commented Jan 28, 2024

v0.2.11 is released with that change. Give it a try and let me know if it works!

@smkent smkent closed this as completed Jan 28, 2024
@borgified
Copy link
Contributor Author

works great now thank you so much

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

2 participants