WebDriverManager.Net icon indicating copy to clipboard operation
WebDriverManager.Net copied to clipboard

Edge on Linux support

Open dministro opened this issue 2 years ago • 0 comments

WebDriverManager version: 2.13.0

WebDriverManager with EdgeConfig throws PlatformNotSupportedException on Linux.

Please add Linux support for edgedriver.

dministro avatar Jun 29 '22 21:06 dministro

It seems the driver for Edge in Linux is not managed with WebDriverManager.Net version 2.14.1. The following tests:

        [TestMethod]
        public void EdgeSession()
        {
            new DriverManager().SetUpDriver(new EdgeConfig());

            var driver = new EdgeDriver();

            driver.Quit();
        }

... produces the following error on (Ubuntu 20.04.4):

  Failed EdgeSession [148 ms]
  Error Message:
   Test method SeleniumDocs.GettingStarted.InstallDriversTest.EdgeSession threw exception: 
OpenQA.Selenium.DriverServiceNotFoundException: The msedgedriver file does not exist in the current directory or in a directory on the PATH environment variable. The driver can be downloaded at https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/.
  Stack Trace:
      at OpenQA.Selenium.DriverService.FindDriverServiceExecutable(String executableName, Uri downloadUrl)
   at OpenQA.Selenium.Edge.EdgeDriverService.CreateDefaultService()
   at OpenQA.Selenium.Edge.EdgeDriver..ctor(EdgeOptions options)
   at OpenQA.Selenium.Edge.EdgeDriver..ctor()
   at SeleniumDocs.GettingStarted.InstallDriversTest.EdgeSession() in /home/boni/dev/seleniumhq.github.io/examples/dotnet/SeleniumDocs/GettingStarted/InstallDriversTest.cs:line 29

bonigarcia avatar Aug 12 '22 16:08 bonigarcia

We're running Edge tests under Ubuntu too (like this GHA run, and the test results here - look for BasicVisualVerificationTests). Check out our workarounds for Edge in this class, especially here.

Piedone avatar Aug 12 '22 16:08 Piedone

Didn't you address this with https://github.com/rosolko/WebDriverManager.Net/commit/a88cd6cad17dda18e535554dc6a598d651a0fe4b, @rosolko?

Piedone avatar Aug 18 '22 18:08 Piedone

@Piedone Yes, I did, thanks!

rosolko avatar Aug 18 '22 19:08 rosolko

Implemented in 2.15.0 version

rosolko avatar Aug 25 '22 08:08 rosolko

Hi @rosolko ,

Thank you!

dministro avatar Aug 25 '22 08:08 dministro