Selenium Webdriver Edge

Active2 months ago

As of the date of this post the name 'Microsoft Edge' has just been officially announced as the default browser for the new Windows 10.

It may be premature to ask but I would like to know if a new Selenium WebDriver is available for it and if not, if there is any telling how long we might expect to wait until we see one developed?

Generated by dossier.

(A technical preview of Windows 10 has already been out so this doesn't seem like a foolish question to me.)

Paul van Leeuwen
1,4451 gold badge11 silver badges24 bronze badges
jzapatajzapata
6241 gold badge8 silver badges16 bronze badges

7 Answers

Yes, there is a WebDriver implementation for Microsoft Edge. Its initial availability was announced on 23 July 2015. Language bindings in the Selenium open source project have been updated to take advantage of this driver implementation, and those updates have been released in Selenium 2.47. Note that the Java language bindings were re-released as 2.47.1 to correct an initial issue. The initial implementation has limited functionality, but Microsoft is committed to bringing a fully functional driver implementation to fruition, so updates will be forthcoming.

EJoshuaS
7,94410 gold badges32 silver badges52 bronze badges
JimEvansJimEvans
23k5 gold badges69 silver badges94 bronze badges

Microsoft has provided MicrosoftWebDriver which can be used for Edge browser.

  1. Correct version of MicrosoftWebDriver needs to be downloaded, based on the OS Build number

  2. Go to Start > Settings > System > About and note down the OS Build number.

  3. Download the proper version of the driver from this link - https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/

  4. If the file that's downloaded is .msi, then install it to get the .exe driver. For one of the release, direct .exe can be downloaded.

  5. Once the MicrosoftWebDriver.exe is downloaded, we can use it in our test script using either System.setProperty('webdriver.edge.driver', 'driver location') or using environment variable

The sample script would be like this -

Refer this article for detailed information - http://automationtestinghub.com/selenium-3-launch-microsoft-edge-with-microsoftwebdriver/

Anish PillaiAnish Pillai

'in case it wasn't clear, Microsoft Edge will have WebDriver support. It isn't available today, but is in development Q's? #msedgesummit' tweet from John Jansen the who is - 'Microsoft Engineer. Principal Software Engineer (nee Test) Lead on Project Spartan (nee Internet Explorer).'You can find him on twitter @thejohnjansen and wait for an announcement :)

Anton AngelovAnton Angelov

The Microsoft Edge driver for Selenium can be automatically downloaded (for Java) using the library webdrivermanager as follows:

The variable webdriver.edge.driver is also exported by webdrivermanager with the proper path of MicrosoftWebDriver.exe.

Boni GarcíaBoni García
3,2463 gold badges17 silver badges37 bronze badges

As of EdgeHTML version 18 (which arrived with Windows version 1809), there is no longer a standalone driver download. You can obtain the new driver in one of two ways:

  • Start - type 'Manage optional features' - Click 'Add a Feature' - Find 'WebDriver'
  • Entering the following on an elevated command prompt - 'DISM.exe /Online /Add-Capability /CapabilityName:Microsoft.WebDriver~~~~0.0.1.0'

Selenium Webdriver Edge Options

Selenium Webdriver Edge

Legacy versions are still available from: https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/

IainnIainn

Prerequisite: Windows 10 is installed on your machine

  1. Download the specified Microsoft WebDriver server version for your build (In my case it is MicrosoftWebDriver.exe for the Operating System: Windows 10 Pro 64-bit (10.0, Build 14393))
  2. Selenium WD Java code for MS Edge is as follows:

    System.setProperty('webdriver.edge.driver', 'D:RiponMicrosoftWebDriver.exe');
    driver = new EdgeDriver();

Ripon Al WasimRipon Al Wasim

Selenium Webdriver Geckodriver

27.6k31 gold badges131 silver badges153 bronze badges

Thanks for your help, I was blocked with my tests, searching for a 'EdgeDriver.exe' asked by the selenium EdgeDriver implementation and only find the MicrosoftWebDriver.

I have made this in C# if this can help someone, based on your previous answers :

First, you need to download the MicrosoftWebDriver nuget package, this one will only make a copy of the MicrosoftWebDriver.exe into your destination folder on compilation then

Hope this can help someone.

YcherguiYchergui

Not the answer you're looking for? Browse other questions tagged seleniumselenium-webdriverwebdrivermicrosoft-edgeselenium-edgedriver or ask your own question.

Windows 10 is launched now and if you have upgraded to Windows 10 then you need to read this article because today in this article we will discuss how to launch Microsoft Edge Browser using Selenium Webdriver.

If you have ever worked on IE browser then you must be familiar with the challenges which you will face in IE browserwhile running scripts.

Follow steps to launch Microsoft Edge Browser using Selenium Webdriver

Microsoft Webdriver Download

Step 1- You have to download Microsoft webdriver and you have to install the same.

Step 2- Once you finish the installation part you will get .exe file in Program files or Program file x86> Microsoft WebDriver > MicrosoftWebdriver.exe

Step 3- You can create sample program which will use above driver to start Edge session.

Sample program to launch Microsoft Edge Browser using Selenium Webdriver

Selenium Webdriver Download