MicrosoftEdge / EdgeWebDriver

Feedback and discussions about WebDriver for Microsoft Edge
MIT License
57 stars 7 forks source link

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

Open Stefanczc opened 6 months ago

Stefanczc commented 6 months ago

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.

david-pulkowski commented 5 months ago

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)

jbakeri4 commented 5 months ago

@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.

pruembeli commented 4 months ago

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 commented 4 months ago

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.