Basic Selenium

How to launch Microsoft Edge Browser using Selenium Webdriver

launch Microsoft Edge Browser using Selenium Webdriver

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 browser while running scripts.

Follow steps to launch Microsoft Edge Browser using Selenium Webdriver

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

launch Microsoft Edge Browser using Selenium Webdriver

 

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

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.edge.EdgeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class StartEdgeBrowser {

	public static void main(String[] args) {
		
		

		// Set the driver path
		System.setProperty("webdriver.edge.driver","WebDriver exe path in your machine");
		
		//Start Edge Session
		WebDriver driver=new EdgeDriver();
		
		driver.get("https://vistasadprojects.com/mukeshotwani-blogs-v2");
		
		driver.quit();
		

	}

}

 

I checked one of the Video on Youtube which will help you

 

Hope this article is useful 🙂 so please share with your friends and let me know if any query related to Selenium.

author-avatar

About Mukesh Otwani

I am Mukesh Otwani working professional in a beautiful city Bangalore India. I completed by BE from RGPV university Bhopal. I have passion towards automation testing since couple of years I started with Selenium then I got chance to work with other tools like Maven, Ant, Git, GitHub, Jenkins, Sikuli, Selenium Builder etc.

8 thoughts on “How to launch Microsoft Edge Browser using Selenium Webdriver

  1. Vivek Akarte says:

    hi Mukesh,

    How can we use “more tools” option of edge browser setting in selenium.

    Settings-. more tools-.>

    1. Hi Vivek, what is the use case?

  2. Gaurav vats says:

    Hi i am trying to launch edge driver but i am not able to load url i debugged its fetching url from excel sheet but i am getting exception as invalid argument i have checked i am passing url as string and declared it as string also then why i am getting this error? can you suggest ?

    1. Hi Gaurav,

      Try to debug it. Value/data which you are reading from excel and passing it as String to load URL. Check what value is coming up during runtime when you debug the code.

  3. Jahnavi K Akkineni says:

    HI Mukesh,
    I have just started using edge with Selenium (C#), the edge browser is launched but is stuck (thinking.. 🙁 ) and will not navigate to the url mentioned. The test case eventually fails, any help with this issue would be appreciated.

    1. Jahnavi, Edge is not stable with Selenium as of now.

  4. Vijayalakshmi says:

    Hi, got to know from internet that webdriver for edge browser is still in initial stages and for now it supports only id selector. I tested it too and it doesn’t work with xpath and css selectors. Also windows 10 tablet has a different version if webdriver to support edge on tablets. I tried that too. Please keep us updated when a full fledged support for edge webdriver is available. Thanks.

    1. Hey Deepa,

      Yes I agreed that it is in beta version and will keep you updated once new changes comes in Selenium 3

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.