2

I am trying to run Selenium tests against MS Edge using Java bindings on macOS. I have successfully installed Edge and the Edge Driver. My tests manage to connect to Edge Driver, but it seems the driver cannot locate the browser's binary, see error message:

org.openqa.selenium.WebDriverException: unknown error: cannot find Microsoft Edge binary

Details:

  • Edge version: 77.0.235.9 (latest)
  • Edge Driver version: 78.0.253.0 (latest) -- I have also tried 77.0.235.9 to match browser's version
  • Selenium version: 3.141.59
  • JDK version: 1.8.0_192-b12
  • macOS version: 10.14.6

I have seen several questions similar to mine and tried some of the suggested solutions, to no avail. Things I have tried:

  • Set environment variable webdriver.edge.bin to point to the binary for the browser.
  • Using new EdgeOptions().setBinary() (not possible since latest version of Java bindings for Selenium doesn't include this method).
  • Adding the browser binary to the path.
quiram
  • 746
  • 1
  • 7
  • 18
  • Can you try the same code on a Windows host? Does it work there? – AndiCover Aug 22 '19 at 17:46
  • see this for configuring Chromium version of Edge: https://github.com/bonigarcia/webdrivermanager/issues/337 – pcalkins Aug 22 '19 at 18:45
  • New Edge web driver can only work when initialized as a chrome driver. We use `new ChromeDriver()` when making test with new MS Edge (Chromium). You could refer to [this thread](https://stackoverflow.com/questions/56076421/selenium-and-edge-dev-chromium-based/56134530#56134530) to see how to run a Selenium test with Java and MS Edge (Chromium). – Yu Zhou Aug 23 '19 at 02:07

0 Answers0