Test Automation on Microsoft Edge Browser using Selenium Web Driver


Microsoft Edge, initially developed under the codename Project Spartan, is a web browser developed by Microsoft and included in the Microsoft Windows operating system. Officially released on July 29, 2015, for Windows 10. It replaced Internet Explorer, which was used as the default browser since Windows ‘95 release, as the default browser on Windows 10. It will also be the default browser of the forthcoming release of Windows 10 for smartphones and small tablets.

Microsoft Edge is designed to be a lightweight web browser with a layout engine built around web standards, removing support for legacy technologies such as ActiveX in favour of extensions and integration with other Microsoft services, such as the digital assistant Cortana and OneDrive; it also includes annotation tools and a reading mode.


Microsoft has announced support for automated testing of Microsoft Edge through the W3C WebDriver standard. To use WebDriver with Microsoft Edge, we need the Microsoft WebDriver server on  Windows 10. WebDriver is an emerging standard through which Web developers can write tests to automate Web browsers for site testing. It provides a programmable remote control for developing complex user scenarios and running them in an automated fashion against your website in a browser.

With this new capability, Microsoft Edge can be run through the same regression testing as other browsers, helping developers and testers to identify issues with less effort and making sites just work for the end users.

learn more about Microsoft test automation

You can refer to the GitHub library for the desired capabilities in selenium for edge browsers for all the detailed methods and etc.


1. WebDriver Server :

To get started using WebDriver, we need to have the first Microsoft WebDriver Server installed in our Windows 10 operating system to start with a new automation framework or to use the existing one. To download the Microsoft edge driver, click here.

WebDriver is disabled by default for security. In order to enable using WebDriver, you will need to download edge driver and install the Microsoft WebDriver in a location with your test repository. You should be able to use Microsoft Edge’s WebDriver implementation just like you would use any other browser’s implementation.

Use WebDriver to automate Microsoft Edge

This server forms a link between Selenium and Edge Browser as shown in the following diagram:

link between Selenium and Edge Browser
link between Selenium and Edge Browser

2. Supporting Language :

After installation of the Microsoft Driver Server, we will have to choose the framework development language. Currently, the updates of web driver support have been submitted to C# and Java Selenium language bindings.

Selenium provides support for all the basic APIs of the Edge browser version 2.47.1 onward. Microsoft Web Driver for IE Edge supports xpath too.

To know more about how to do C# Selenium testing with MS Edge driver


3. Automation Framework :

I. Framework from scratch:

If you are building the framework from scratch to be tested on Microsoft Edge then firstly download the language-specific selenium client. And import it within the project. Here we will use java as a framework development language.

Step 1 -> Set System property for edge driver.

Set System property for edge driver
Set System property for edge driver

Step 2 ->If you want to change the default page load strategy of edge browser which is normal by default you can use the following code snippet 

Set System property
Set System property

Step 3 ->Get the object of Edge browser as follows

Using this driver instance you can access the different objects with the help of different locators on the website you want to automate. Except few, most of the locators will work for the Edge browser. These options will be discussed in the next section in detail.

II. Existing Framework to run on Microsoft Edge:

The latest release Selenium 2.53.1 provides good support for most of the features that we have available for the other browsers to date. So you will not be able to run the existing framework on the edge browser directly. We have checked with the latest release of Selenium and found that the following list of features is supported.

As per the latest release Selenium 2.53.1

Locators supported: id, css, cssSelector, name, tagName, xpath, linkText, partialLinkText, tagName

Functionality supported: Maximize screen, full-screen window, getting window handles, size, and handling alerts is also supported with the latest versions of IE Web driver.

We at AFourTech have implemented an e web test automation framework that will act as an accelerator to help you code, execute and generate a report of your manual test cases, all within a couple of hours. It provides the added advantage of supporting all major browsers like Chrome, Firefox, IE, and IE Edge as well as allowing you to code in multiple languages supported by Selenium i.e. Java, C#, Python, Ruby, PHP, and Javascript.


  • Purushotham

    Hi After launching the edge browser i am not able to perform get, browser is launched but not able to open the required website using get.


    Can you please suggest.


    • Abhijiit Patange

      Hi Purushottam..
      You can try this for your problem.

      System.setProperty(“webdriver.edge.driver”, “C:\Program Files (x86)\Microsoft Web Driver\MicrosoftWebDriver.exe”);
      EdgeOptions options = new EdgeOptions();
      driver = new EdgeDriver(options);


    • Hi Purushotham,

      You missed the double quotes at the end. it should be driver.get(“http://google.com”)

  • Shah

    hi,i did exactly what you wrote in comment but didn’t work for me.

  • Geeta

    I am using selenium 3.0.1 but Xpath doesn’t work with edge browser. Is there a way to use xpath with edge driver??

  • Imtiaz

    I am getting following error while opening or loading edge browser in Coded UI with Microsoft Web Driver.
    Please see this and help me regarding this asap.
    “Could not locate the browser window, window name not specified.”

  • Uttam Basak


    I am using groovy to develop testing framework using Selenium. I want to switch driver from main page to a pop-up window but I could not able to do. I have seen that driver.getWindowHandles() does not work using edge driver and edge browser. driver.getWindowHandles() always returns 1 window handler i.e. main page. Is there any capability that I am missing to capture pop-up window? Any help would be appreciated. Thanks.

  • Aashish

    Are “DesiredCapabilites” for edge provided for selenium webdriver.
    Please help…. because after the browser gets loaded, no action is taking place,

  • August Scholl

    some genuinely interesting info , well written and generally user pleasant.

  • Santos Ritell

    I am delighted that I found this web blog, exactly the right information that I was looking for! .

  • Terrell Ka

    some genuinely interesting information, well written and broadly speaking user friendly.

  • Jenae Franklyn

    I like this site very much, Its a rattling nice situation to read and find info .

  • Dudley Stoy

    very interesting points you have observed, appreciate it for putting up.

  • Royal Mias

    this web site is my inspiration , real good design and perfect subject matter.

  • Roni Dephillips

    I got what you intend, regards for posting.

  • Cecile Esser

    some truly superb blog posts on this internet site, thanks for contribution.

  • Candace Rend

    I very thankful to find this website on bing, just what I was searching for : D also bookmarked.

  • warface hacks

    You can certainly see your skills in the work you write. The world hopes for more passionate writers like you who aren’t afraid to say how they believe. Always go after your heart.

  • Pearlene Dandy

    wonderful points altogether, you just gained a brand new reader. What would you recommend in regards to your post that you made some days ago? Any positive?

  • Keitha Mulcahy

    Wow, amazing blog layout! How long have you been blogging for? you made blogging look easy. The overall look of your site is magnificent, let alone the content!

  • Elza Fremin

    I’m pretty pleased to uncover this web site. I wanted to thank you for your time due to this wonderful read!! I definitely savored every little bit of it and i also have you bookmarked to look at new stuff on your web site.

  • Alonzo Grodin

    Good post. I learn something totally new and challenging on websites I stumbleupon every day. It will always be helpful to read through content from other writers and practice something from other websites.

  • Faye Whittemore

    I like this post, enjoyed this one thanks for putting up.

  • Dolores Miklos

    My brother recommended I may like this website. He used to be totally right. This post truly made my day. You cann’t imagine simply how so much time I had spent for this information! Thanks!|

  • Andre Brackney

    It’s fantastic that you are getting ideas from this piece of writing as well as from our argument made at this time.|

  • Glayds Mazo

    Greetings from Idaho! I’m bored to tears at work so I decided to check out your blog on my iphone during lunch break. I enjoy the info you present here and can’t wait to take a look when I get home. I’m shocked at how quick your blog loaded on my cell phone .. I’m not even using WIFI, just 3G .. Anyways, good site!|

  • Vincenzo Larriuz

    all the time i used to read smaller articles which also clear their motive, and that is also happening with this piece of writing which I am reading at this time.|

  • Mignon Dudack

    Good web site you have here.. It’s hard to find excellent writing like yours nowadays. I honestly appreciate individuals like you! Take care!!|

  • Waneta Marlor

    I am actually thankful to the holder of this web site who has shared this enormous piece of writing at at this place.|

  • Yi Allenson

    Very good post! We will be linking to this particularly great content on our website. Keep up the great writing.|

  • Erma Steinbach

    Undeniably believe that which you stated. Your favorite justification seemed to be on the internet the easiest thing to be aware of. I say to you, I definitely get irked while people think about worries that they just do not know about. You managed to hit the nail upon the top and also defined out the whole thing without having side effect , people can take a signal. Will likely be back to get more. Thanks|

  • Noble Carboni

    I’ve read several good stuff here. Certainly worth bookmarking for revisiting. I wonder how so much attempt you set to create this kind of wonderful informative website.|

  • Lourdes Harr

    If you desire to improve your familiarity only keep visiting this web site and be updated with the most recent information posted here.|

  • Rocco Lofties

    This design is steller! You definitely know how to keep a reader entertained. Between your wit and your videos, I was almost moved to start my own blog (well, almost…HaHa!) Excellent job. I really loved what you had to say, and more than that, how you presented it. Too cool!|

  • Isaias Stathos

    I always emailed this weblog post page to all my friends, since if like to read it next my contacts will too.|

  • Randolph Appl

    I think this is among the most significant info for me. And i am glad reading your article. But want to remark on some general things, The web site style is wonderful, the articles is really great : D. Good job, cheers|

  • Nolan Wike

    Hi there! Do you use Twitter? I’d like to follow you if that would be ok. I’m undoubtedly enjoying your blog and look forward to new posts.|

  • Emmitt

    It’s hard to find knowledgeable people in this particular topic, however, you seem like you know what you’re talking about! Thanks|

  • Sha Milan

    Good article. I certainly appreciate this site. Thanks!

  • Mitchel Galanti

    you got a very good website, Sword lily I found it through yahoo.

  • Lonnie Oehmke

    Very good article. I will be going through a few of these issues as well..

  • Leroy Stuble

    You made some good points there. I looked on the net to find out more about the issue and found most individuals will go along with your views on this website.

  • Alyson Gertz  

    Greetings, Usually I never comment on blogs but your article is so convincing that I never stop myself to say something about it. You’re doing a great job, Keep it up. You can check out this article, might be of help 🙂

  • Brad Decurtis

    Hey there! I’m at work browsing your blog from my new apple iphone! Just wanted to say I love reading your blog and look forward to all your posts! Keep up the fantastic work!

  • Ned Grosland

    Way cool! Some extremely valid points! I appreciate you writing this write-up and the rest of the website is also really good.

  • Tyson Canino  

    Good tidings, Generally I never remark on online journals yet your article is persuading to the point that I never stop myself to say something regarding it. You’re working effectively, Keep it up. You can look at this article, may be of help 🙂

  • Apryl Krug  

    Good tidings, Generally I never remark on online journals yet your article is persuading to the point that I never stop myself to say something regarding it. You’re working effectively, Keep it up. You can look at this article, may be of help 🙂

  • Jake Gasner

    Superb website you have here but I was curious if you knew of any community forums that cover the same topics discussed here? I’d really like to be a part of community where I can get suggestions from other experienced individuals that share the same interest. If you have any recommendations, please let me know. Cheers!

  • Antione Rubinow

    Hi there! This is my 1st comment here so I just wanted to give a quick shout out and say I truly enjoy reading through your articles. Can you recommend any other blogs/websites/forums that deal with the same topics? Thank you!

  • Rosina Lissy

    I don’t even know the way I ended up here, however I thought this publish was great. I don’t understand who you are however definitely you are going to a famous blogger if you aren’t already 😉 Cheers!

  • Myong Traverso  

    Incredible news, Generally I never remark on online journals yet your article is persuading to the point that I never stop myself to say something concerning it. You’re working feasibly, Keep it up. You can see this article, may be of help 🙂

  • Anonymous

    Greetings, Usually I never comment on blogs but your article is so convincing that I never stop myself to say something
    about it. You’re doing a great job, Keep it up. You can check out this article

  • David Zentz

    I want to to thank you for this great read!! I absolutely loved every bit of it. I have you book marked to check out new things you post…

  • Lavern Hovi

    Very good information. Lucky me I ran across your site by accident (stumbleupon). I have bookmarked it for later!

  • Keisha Gaeddert

    I seriously love your website.. Pleasant colors & theme. Did you make this website yourself? Please reply back as I’m looking to create my own blog and would love to know where you got this from or what the theme is named. Kudos!

  • Ernie Pia

    You have made some decent points there. I checked on the web for more info about the issue and found most people will go along with your views on this site.

  • Twana Bullis

    Hi there! This article couldn’t be written much better! Looking at this post reminds me of my previous roommate! He always kept talking about this. I most certainly will send this article to him. Pretty sure he will have a great read. I appreciate you for sharing!

  • Sharice Maietta

    I was able to find good info from your articles.

  • Kermit Favilla

    After going over a number of the articles on your site, I truly appreciate your technique of writing a blog. I saved it to my bookmark webpage list and will be checking back soon. Please visit my website as well and tell me how you feel.

  • Loren Talboti

    This is very interesting, You’re a very skilled blogger. I’ve joined your rss feed and look forward to seeking more of your wonderful post. Also, I have shared your web site in my social networks!

  • Nathanial Manzanares

    Thanks for sharing superb informations. Your web-site is so cool. I’m impressed by the details that you have on this site. It reveals how nicely you understand this subject. Bookmarked this website page, will come back for more articles. You, my friend, ROCK! I found simply the info I already searched everywhere and simply couldn’t come across. What a perfect site.

  • Pauline Spidel

    I must get across my appreciation for your kind-heartedness giving support to those people who actually need help on the area. Your special commitment to getting the message across became pretty important and has all the time enabled professionals like me to reach their desired goals. This insightful facts means a whole lot a person like me and even more to my mates. Thank you; from everyone of us.

  • Enid Belstad

    Thanks so much for providing individuals with a very nice opportunity to discover important secrets from this web site. It can be very superb and also full of amusement for me and my office friends to visit your site at a minimum three times in 7 days to see the newest guidance you will have. And definitely, I’m usually fulfilled with the gorgeous techniques you serve. Some 1 points in this article are really the most suitable we’ve had.

  • Rigoberto Graen

    Good post. I am facing many of these issues as well..

Leave a Reply