Giter Site home page Giter Site logo

Test will freeze/fail, trying to download driver binary, when developer computer is temporarily offline about webdrivermanager HOT 12 CLOSED

bonigarcia avatar bonigarcia commented on August 20, 2024
Test will freeze/fail, trying to download driver binary, when developer computer is temporarily offline

from webdrivermanager.

Comments (12)

bonigarcia avatar bonigarcia commented on August 20, 2024

Use a fixed version of chromedriver instead of reading to the repository to get the latest version. That should do the trick. For example:

ChromeDriverManager.getInstance().setup("2.21");

from webdrivermanager.

djangofan avatar djangofan commented on August 20, 2024

Using your suggestion didn't change anything about the behavior:
ChromeDriverManager.getInstance().setup("2.21");
So, I have this setup in my application.properties :

wdm.chromeDriverUrl=http://chromedriver.storage.googleapis.com/
wdm.chromeDriverExport=webdriver.chrome.driver
wdm.chromeDriverVersion=2.21

And I start the driver like this:
ChromeDriverManager.getInstance().setup(Architecture.x32);
So, my question is: WHY would you suggest I call setup with a version number if I clearly state the version number that I want in my application.properties file? Also, if I want to run a previously download driver: 2.18, 2.20, or whatever, why does your code ALWAYS try to download via the wdm.chromeDriverUrl when the driver (with that version) was already previously download by WDM?

from webdrivermanager.

bonigarcia avatar bonigarcia commented on August 20, 2024

There was an issue related to this in version 1.4.1. Test with WebDriverManager 1.4.2 and the following command:

ChromeDriverManager.getInstance().setup(Architecture.x32, "2.21");

from webdrivermanager.

djangofan avatar djangofan commented on August 20, 2024

It works now for me, thanks. Forgot to tell you that I think.

from webdrivermanager.

djangofan avatar djangofan commented on August 20, 2024

Was having this problem again on version 1.4.1 and I just verified again that version 1.4.2 fixes the problem. Thanks again.

from webdrivermanager.

andrey-epifanov avatar andrey-epifanov commented on August 20, 2024

hello !
Many thanks for your library ! :)
I have such case.
And this fix is available for versions of chrome driver like 2.0 - 2.24 .
But http://chromedriver.storage.googleapis.com does not contain 3.0.1 chromedriver , that's why it is not work with 3.0.1 .
Can it be fixed?

Andrey

from webdrivermanager.

bonigarcia avatar bonigarcia commented on August 20, 2024

@andrey-epifanov I don't understand your point. The latest version of chromedriver at writing time is 2.27. You should be able to use ChromeDriverManager to force a given version, for example this way:

ChromeDriverManager.getInstance().setup("2.27");

What's the problem?

from webdrivermanager.

djangofan avatar djangofan commented on August 20, 2024

from webdrivermanager.

andrey-epifanov avatar andrey-epifanov commented on August 20, 2024

Official Selenium News
http://www.seleniumhq.org/about/news.jsp

Also I try to research pages / sites like http://chromedriver.storage.googleapis.com with higher version of ChromeDriver , and don't find.

from webdrivermanager.

bonigarcia avatar bonigarcia commented on August 20, 2024

You are confusing the version of Selenium WebDriver which is 3.x with the version of chromedriver, which is the specific binary aimed to control Google Chrome browser with Selenium Webdriver. The latest version of chromedriver, as I said before is 2.27 currently.

from webdrivermanager.

andrey-epifanov avatar andrey-epifanov commented on August 20, 2024

May be. Sorry if I have mistake .
But - I execute for my maven project command : mvn dependency:tree -Dverbose
and see following :
[INFO] +- org.seleniumhq.selenium:selenium-java:jar:3.0.1:compile
[INFO] | +- org.seleniumhq.selenium:selenium-chrome-driver:jar:3.0.1:compile
[INFO] | +- org.seleniumhq.selenium:selenium-edge-driver:jar:3.0.1:compile

With best regards,
Andrey

from webdrivermanager.

andrey-epifanov avatar andrey-epifanov commented on August 20, 2024

@bonigarcia
After check I inclined to think that you are right, because without concrete version of chromedriver in setup I see in log :
2017-01-24 20:17:42 [main] INFO i.g.bonigarcia.wdm.BrowserManager - Reading http://chromedriver.storage.googleapis.com/ to seek chromedriver
2017-01-24 20:17:44 [main] INFO i.g.bonigarcia.wdm.BrowserManager - Latest version of chromedriver is 2.27
2017-01-24 20:17:44 [main] INFO i.g.bonigarcia.wdm.BrowserManager - Exporting webdriver.chrome.driver as C:\Users\Epifanov.m2\repository\webdriver\chromedriver\win32\2.27\chromedriver.exe

but this conflict of version is looking like trick, sorry ))

where can I watch matching versions chrome driver in seleniumhq and chromedriver in http://chromedriver.storage.googleapis.com/ ?

from webdrivermanager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.