selenium: [🐛 Bug]: Unable to obtain MicrosoftEdge using Selenium Manager

What happened?

Yet another “Unable to obtain … using Selenium Manager” after upgrading to version 4.11.0.

In my case the error occurs when I call CreateDefaultService() without passing the webdriver location path parameter (in .NET project).

It works only on the development machine but not when deployed by ClickOnce. It also works when I pass the location of the webdriver executable to CreateDefaultService(), e.g. CreateDefaultService("C:\\webdriver\\msedgedriver.exe"); .

Context:

  • Visual Studio 2022
  • .NET / C# / VSTO (MS Office 2010)
  • x86 build (MS Office Add-In)
  • x64 machine
  • ClickOnce deployment

I have tried to build the latest nightly pre-release but this was not successful at all. So I couldn’t say, whether the bug has been fixed meanwhile.

How can we reproduce the issue?

EdgeOptions edgeOptions = new EdgeOptions() { };
edgeOptions.AddArgument("no-sandbox");
edgeOptions.AddArgument("--disable-dev-shm-usage");
EdgeDriverService edgeService = EdgeDriverService.CreateDefaultService();
EdgeDriver edge = new EdgeDriver(EdgeService, edgeOptions);

Relevant log output

Unable to obtain MicrosoftEdge using Selenium Manager (...)

at OpenQA.Selenium.DriverFinder.FullPath(DriverOptions options)
at OpenQA.Selenium.Edge.EdgeDriverService.CreateDefaultService(EdgeOptions options)
at OpenQA.Selenium.Edge.EdgeDriverService.CreateDefaultService()

Operating System

Windows 10

Selenium version

4.11.0, 4.12.3

What are the browser(s) and version(s) where you see this issue?

Microsoft Edge v115.0.1901.203

What are the browser driver(s) and version(s) where you see this issue?

EdgeDriver v115.0.1901.203

Are you using Selenium Grid?

No response

About this issue

  • Original URL
  • State: closed
  • Created 10 months ago
  • Comments: 18 (7 by maintainers)

Most upvoted comments

Confirmation: The problem seems to be solved in version 4.13.1.