EdgeWebDriver icon indicating copy to clipboard operation
EdgeWebDriver copied to clipboard

This version of Microsoft Edge WebDriver only supports Microsoft Edge version 122

Open Stefanczc opened this issue 1 year ago • 4 comments

Hello! I am trying to run my usual test cases in wedriverIO using Microsoft Edge browser. Since the latest Microsoft Edge update, I keep getting this error: '2024-05-08T07:56:37.941Z ERROR @wdio/runner: Error: Failed to create session. [0-0] session not created: This version of Microsoft Edge WebDriver only supports Microsoft Edge version 122 [0-0] Current browser version is 124.0.2478.80 with binary path C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe'

I have tried all sort of solutions found online but I am unable to make this work. Any idea what might cause this or how to deal with it ? If you need more details, please let me know. Thanks in advance.

Stefanczc avatar May 08 '24 08:05 Stefanczc

For our use cases, when we are two versions behind we get the same error. Update your Edge driver to be the same as 124 or only 1 version behind. (Same issue will happen for chrome)

The error says your browser is 124, yet your webdriver is 122. Update to 124 and you should be good. (or update to whatever version your current edge version is)

david-pulkowski avatar May 21 '24 20:05 david-pulkowski

@Stefanczc Are you using Selenium, by any chance? They recently released v4.21.0. I updated its Maven dependency in my Java project to reflect this and I do not encounter the error shown in your post.

jbakeri4 avatar May 22 '24 11:05 jbakeri4

The Edge browser is getting an update like every week, the driver should be more tolerant and accept all version until a breaking change happened - or add a "ignoreVersion" option to the driver.

pruembeli avatar Jun 24 '24 17:06 pruembeli

I got it running without version check exception like this:

`var service = EdgeDriverService.CreateDefaultService(localPath); service.DisableBuildCheck = true;

var options = new EdgeOptions(); options.AddArgument("--allow-running-insecure-content"); options.AddArgument("--ignore-certificate-errors");

var driver = new EdgeDriver(service, options);`

I tried it before with option "--disable-build-check" but that didn't work.

pruembeli avatar Jun 25 '24 14:06 pruembeli