webdrivermanager: WebDriverManager.edgedriver().setup() fails with NoSuchElementException

Hi,

I am using webdrivemanager v3.4.0 and try to initialise the EdgeDriver by calling

WebDriverManager.edgedriver().setup();
EdgeDriver edgeDriver = new EdgeDriver();
edgeDriver.get("http://www.google.de");

this fails with

Exception in thread "main" io.github.bonigarcia.wdm.WebDriverManagerException: java.util.NoSuchElementException
	at io.github.bonigarcia.wdm.WebDriverManager.handleException(WebDriverManager.java:715)
	at io.github.bonigarcia.wdm.WebDriverManager.manage(WebDriverManager.java:540)
	at io.github.bonigarcia.wdm.WebDriverManager.handleException(WebDriverManager.java:712)
	at io.github.bonigarcia.wdm.WebDriverManager.manage(WebDriverManager.java:540)
	at io.github.bonigarcia.wdm.WebDriverManager.setup(WebDriverManager.java:260)
	at de.end2end.browser.interaction.Browser.main(Browser.java:104)
Caused by: java.util.NoSuchElementException
	at java.base/java.util.LinkedList$ListItr.next(LinkedList.java:894)
	at io.github.bonigarcia.wdm.EdgeDriverManager.postDownload(EdgeDriverManager.java:155)
	at io.github.bonigarcia.wdm.Downloader.extract(Downloader.java:202)
	at io.github.bonigarcia.wdm.Downloader.downloadAndExtract(Downloader.java:138)
	at io.github.bonigarcia.wdm.Downloader.download(Downloader.java:81)
	at io.github.bonigarcia.wdm.WebDriverManager.downloadCandidateUrls(WebDriverManager.java:723)
	at io.github.bonigarcia.wdm.WebDriverManager.manage(WebDriverManager.java:536)
	... 4 more

when debugging this, it looks like that the candidate urls work differently.

In io.github.bonigarcia.wdm.WebDriverManager#filterCandidateUrls, the following List<URL> is returned:

[https://msedgecdn.azurewebsites.net/webdriver/index.html]

This is for Release 75. This link messes up all following assumptions of downloading a driver

Possible earlier releases like Release 17134 seems to have a correct url https://download.microsoft.com/download/F/8/A/F8AF50AB-3C3A-4BC4-8773-DC27B32988DD/MicrosoftWebDriver.exe, but I cannot use

WebDriverManager.edgedriver().version("17134").setup();
EdgeDriver edgeDriver = new EdgeDriver();
edgeDriver.get("http://www.google.de");

as this fails with

Exception in thread "main" io.github.bonigarcia.wdm.WebDriverManagerException: io.github.bonigarcia.wdm.WebDriverManagerException: MicrosoftWebDriver 17134 for WIN64 not found in https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/
	at io.github.bonigarcia.wdm.WebDriverManager.handleException(WebDriverManager.java:715)
	at io.github.bonigarcia.wdm.WebDriverManager.manage(WebDriverManager.java:540)
	at io.github.bonigarcia.wdm.WebDriverManager.handleException(WebDriverManager.java:712)
	at io.github.bonigarcia.wdm.WebDriverManager.manage(WebDriverManager.java:540)
	at io.github.bonigarcia.wdm.WebDriverManager.setup(WebDriverManager.java:260)
	at de.end2end.browser.interaction.Browser.main(Browser.java:104)
Caused by: io.github.bonigarcia.wdm.WebDriverManagerException: MicrosoftWebDriver 17134 for WIN64 not found in https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/
	at io.github.bonigarcia.wdm.WebDriverManager.manage(WebDriverManager.java:533)
	... 4 more

Is this an issue or do I have a wrong configuration ?

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 19 (6 by maintainers)

Commits related to this issue

Most upvoted comments

it is not solved yet. Still, we are getting the error while launching Microsoft Webdriver

@remcogeldhof I have almost tried everything but i think there is some issue with the implementation of this new version as array out of index suggests there is some memory leakage in webDriverManager code.

@daskhatri

  1. Run below command on elevated command Prompt:- DISM.exe /Online /Add-Capability /CapabilityName:Microsoft.WebDriver~~~~0.0.1.0
  2. Write below command to launch edge browser for Java language binding:- EdgeDriverService service = EdgeDriverService.createDefaultService(); WebDriver driver = new EdgeDriver(service);

Hi @bonigarcia , just wanna ask is this something to be fixed soon? or if you have an earlier version that’s working and can be used at the moment? Thanks

This should be fixed in version 3.6.1, recently released.