Skip to content

WebDriverManager not able to fetch the windows edge (chromium) 64bit driver #464

Description

@markloughery

Description of the problem:
I am using Edge Chromium on Windows 10 (64 bit) and WebDriverManager is unable to pull the edgedriver_win64.zip from the repository.

Browser and version:
Edge Chromium 81.0.416.45 WIN64

Operating system:
Windows 10

WebDriverManager version:
3.8.1

WebDriverManager use:
WebDriverManager.edgedriver().operatingSystem(OperatingSystem.WIN).setup();
WebDriver driver = new EdgeDriver();

WebDriverManager traces:

0 [main] DEBUG io.github.bonigarcia.wdm.Shell  - Running command on the shell: [wmic, datafile, where, name='C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe', get, Version, /value]
372 [main] DEBUG io.github.bonigarcia.wdm.Shell  - Result: Version=81.0.416.53
372 [main] DEBUG io.github.bonigarcia.wdm.WebDriverManager  - Edge (based on Chromium) version 81 found
376 [main] DEBUG io.github.bonigarcia.wdm.WebDriverManager  - Getting driver version for edge81 from online versions.properties
400 [main] DEBUG org.apache.http.client.protocol.RequestAddCookies  - CookieSpec selected: standard
408 [main] DEBUG org.apache.http.client.protocol.RequestAuthCache  - Auth cache not set in the context
410 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager  - Connection request: [route: {s}->https://raw.githubusercontent.com:443][total kept alive: 0; route allocated: 0 of 2; total allocated: 0 of 20]
432 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager  - Connection leased: [id: 0][route: {s}->https://raw.githubusercontent.com:443][total kept alive: 0; route allocated: 1 of 2; total allocated: 1 of 20]
434 [main] DEBUG org.apache.http.impl.execchain.MainClientExec  - Opening connection {s}->https://raw.githubusercontent.com:443
496 [main] DEBUG org.apache.http.impl.conn.DefaultHttpClientConnectionOperator  - Connecting to raw.githubusercontent.com/151.101.192.133:443
497 [main] DEBUG org.apache.http.conn.ssl.SSLConnectionSocketFactory  - Connecting socket to raw.githubusercontent.com/151.101.192.133:443 with timeout 0
620 [main] DEBUG org.apache.http.conn.ssl.SSLConnectionSocketFactory  - Enabled protocols: [TLSv1.3, TLSv1.2, TLSv1.1, TLSv1]

2117 [main] DEBUG org.apache.http.headers  - http-outgoing-2 << Expires: -1
2117 [main] DEBUG org.apache.http.headers  - http-outgoing-2 << Vary: Accept-Encoding
2117 [main] DEBUG org.apache.http.headers  - http-outgoing-2 << Server: Microsoft-IIS/10.0
2117 [main] DEBUG org.apache.http.headers  - http-outgoing-2 << X-Frame-Options: SAMEORIGIN
2117 [main] DEBUG org.apache.http.headers  - http-outgoing-2 << X-ResponseUrl: https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/
2117 [main] DEBUG org.apache.http.headers  - http-outgoing-2 << request-context: appId=cid-v1:60a8fa6b-cb7f-40c9-8b6a-597315715d14
2117 [main] DEBUG org.apache.http.headers  - http-outgoing-2 << X-XSS-Protection: 1; mode=block
2117 [main] DEBUG org.apache.http.headers  - http-outgoing-2 << X-Download-Options: noopen
2117 [main] DEBUG org.apache.http.headers  - http-outgoing-2 << X-Content-Type-Options: nosniff,nosniff
2117 [main] DEBUG org.apache.http.headers  - http-outgoing-2 << x-dns-prefetch-control: on
2117 [main] DEBUG org.apache.http.headers  - http-outgoing-2 << X-AspNet-Version: 4.0.30319
2117 [main] DEBUG org.apache.http.headers  - http-outgoing-2 << MS-CorrelationId: cf5bdeb9-570d-402f-acbb-27cdfb8d8fcb
2118 [main] DEBUG org.apache.http.headers  - http-outgoing-2 << X-Powered-By: ASP.NET
2118 [main] DEBUG org.apache.http.headers  - http-outgoing-2 << X-UA-Compatible: IE=edge
2118 [main] DEBUG org.apache.http.headers  - http-outgoing-2 << Content-Encoding: gzip
2118 [main] DEBUG org.apache.http.headers  - http-outgoing-2 << Date: Fri, 17 Apr 2020 10:09:01 GMT
2118 [main] DEBUG org.apache.http.headers  - http-outgoing-2 << Content-Length: 4039
2118 [main] DEBUG org.apache.http.headers  - http-outgoing-2 << Connection: keep-alive
2118 [main] DEBUG org.apache.http.headers  - http-outgoing-2 << Set-Cookie: Session-Id=d42171f1-41e7-485e-afcd-991b36a1415e; path=/;SameSite=Lax; secure; HttpOnly
2118 [main] DEBUG org.apache.http.headers  - http-outgoing-2 << Set-Cookie: MarketplaceSelectedLocale=en-us; expires=Sat, 17-Apr-2021 10:09:00 GMT; path=/;SameSite=None; secure; HttpOnly
2118 [main] DEBUG org.apache.http.headers  - http-outgoing-2 << Strict-Transport-Security: max-age=31536000; includeSubDomains
2118 [main] DEBUG org.apache.http.impl.execchain.MainClientExec  - Connection can be kept alive indefinitely
2118 [main] DEBUG org.apache.http.client.protocol.ResponseProcessCookies  - Cookie accepted [Session-Id="d42171f1-41e7-485e-afcd-991b36a1415e", version:0, domain:developer.microsoft.com, path:/, expiry:null]
2119 [main] DEBUG org.apache.http.client.protocol.ResponseProcessCookies  - Cookie accepted [MarketplaceSelectedLocale="en-us", version:0, domain:developer.microsoft.com, path:/, expiry:Sat Apr 17 11:09:00 BST 2021]
2136 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager  - Connection [id: 2][route: {s}->https://developer.microsoft.com:443] can be kept alive indefinitely
2136 [main] DEBUG org.apache.http.impl.conn.DefaultManagedHttpClientConnection  - http-outgoing-2: set socket timeout to 0
2136 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager  - Connection released: [id: 2][route: {s}->https://developer.microsoft.com:443][total kept alive: 1; route allocated: 1 of 2; total allocated: 1 of 20]
2137 [main] ERROR io.github.bonigarcia.wdm.WebDriverManager  - msedgedriver 81.0.416.45 for WIN64 not found in https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/
2137 [main] WARN io.github.bonigarcia.wdm.WebDriverManager  - There was an error managing msedgedriver 81.0.416.45 (msedgedriver 81.0.416.45 for WIN64 not found in https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/) ... trying again using latest from cache
2166 [main] DEBUG io.github.bonigarcia.wdm.WebDriverManager  - Driver msedgedriver (latest version) found in cache
2167 [main] INFO io.github.bonigarcia.wdm.WebDriverManager  - Exporting webdriver.edge.driver as ~\.m2\repository\webdriver\edgedriver\mac64\x64\81.0.410.0\msedgedriver

Error trace:

org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start.
Build info: version: '3.14.0', revision: 'aacccce0', time: '2018-08-02T20:19:58.91Z'
System info: host: 'OPUS2-4788', ip: '192.168.1.57', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '13.0.1'
Driver info: driver.version: Driver
	at org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(DriverService.java:193)
	at org.openqa.selenium.remote.service.DriverService.start(DriverService.java:179)
	at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:79)
	at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:548)
	at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:212)
	at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:130)
	at org.openqa.selenium.edge.EdgeDriver.<init>(EdgeDriver.java:141)
	at org.openqa.selenium.edge.EdgeDriver.<init>(EdgeDriver.java:130)
	at implementation.Driver.getDriver(Driver.java:110)
	at stepdefinitions.Hooks.testStartup(Hooks.java:93)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:567)
	at cucumber.runtime.Utils$1.call(Utils.java:40)
	at cucumber.runtime.Timeout.timeout(Timeout.java:16)
	at cucumber.runtime.Utils.invoke(Utils.java:34)
	at cucumber.runtime.java.JavaHookDefinition.execute(JavaHookDefinition.java:60)
	at cucumber.runtime.Runtime.runHookIfTagsMatch(Runtime.java:224)
	at cucumber.runtime.Runtime.runHooks(Runtime.java:212)
	at cucumber.runtime.Runtime.runBeforeHooks(Runtime.java:202)
	at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:40)
	at cucumber.runtime.model.CucumberFeature.run(CucumberFeature.java:165)
	at cucumber.runtime.Runtime.run(Runtime.java:122)
	at cucumber.api.cli.Main.run(Main.java:36)
	at cucumber.api.cli.Main.main(Main.java:18)
Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://localhost:7877/status] to be available after 20002 ms
	at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:100)
	at org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(DriverService.java:188)
	... 25 more
Caused by: java.util.concurrent.TimeoutException
	at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:204)
	at com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:156)
	at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:75)
	... 26 more

java.lang.NullPointerException
	at java.base/java.util.Objects.requireNonNull(Objects.java:222)
	at org.openqa.selenium.support.ui.FluentWait.<init>(FluentWait.java:115)
	at org.openqa.selenium.support.ui.WebDriverWait.<init>(WebDriverWait.java:102)
	at org.openqa.selenium.support.ui.WebDriverWait.<init>(WebDriverWait.java:45)
	at implementation.Base.waitForPageLoad(Base.java:3313)
	at implementation.Driver.getCurrentUrlWait(Driver.java:598)
	at implementation.Driver.takeScreenshot(Driver.java:370)
	at stepdefinitions.Hooks.testTearDown(Hooks.java:124)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:567)
	at cucumber.runtime.Utils$1.call(Utils.java:40)
	at cucumber.runtime.Timeout.timeout(Timeout.java:16)
	at cucumber.runtime.Utils.invoke(Utils.java:34)
	at cucumber.runtime.java.JavaHookDefinition.execute(JavaHookDefinition.java:60)
	at cucumber.runtime.Runtime.runHookIfTagsMatch(Runtime.java:224)
	at cucumber.runtime.Runtime.runHooks(Runtime.java:212)
	at cucumber.runtime.Runtime.runAfterHooks(Runtime.java:206)
	at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:46)
	at cucumber.runtime.model.CucumberFeature.run(CucumberFeature.java:165)
	at cucumber.runtime.Runtime.run(Runtime.java:122)
	at cucumber.api.cli.Main.run(Main.java:36)
	at cucumber.api.cli.Main.main(Main.java:18)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions