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

WDM caches version of installed browser for too long #483

Closed
asolntsev opened this issue May 22, 2020 · 3 comments
Closed

WDM caches version of installed browser for too long #483

asolntsev opened this issue May 22, 2020 · 3 comments

Comments

@asolntsev
Copy link
Contributor

Description of the problem:
WDM caches version of installed browser for 24 hours by default.
It's too long!

Every time when Chrome upgrades (e.g. from 81 to 83 today), people continue to get famous "this chromedriver supports only chrome 81" error for a whole day!

Look at file ~/.m2/repository/webdriver/resolution.properties:

chrome=81
chrome-ttl=18\:21\:16 23/05/2020 EEST

(but my Chrome browser already upgraded to version 83).

Solution:
I suggest to introduce another setting like wdm.ttl.for-installed-browser=300 in addition to wdm.ttl=86400. It's cheap to check the version of installed browser. It's ok to check it once in every 5 minutes or so.

Browser and version: any
Operating system: any
WebDriverManager version: 4.0.0, 3.8.x

WebDriverManager use:

WebDriverManager.chrome().setup();
@ckempster
Copy link

Have also seen this issue,WDM caches version of installed browser for 24 hours by default.

@bonigarcia
Copy link
Owner

Thanks for reporting @asolntsev. Indeed maybe TTL=1day makes sense for driver versions, but perhaps it is too much for browser versions. Let me think about it (together with #484)

@bonigarcia
Copy link
Owner

This is available in WebDriverManager 4.1.0, just released.

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

No branches or pull requests

3 participants