• Skip to main content
  • Skip to primary sidebar
  • Skip to footer
  • Home
  • Programming Languages
    • Java Tutorials
    • Python Tutorials
    • JavaScript Tutorials
  • Automation Tools and Different Tools
    • Web Automation
      • Selenium with Java
        • Selenium Basic
        • Selenium Advance
        • Selenium Realtime
        • Framework
        • Selenium Interview
        • Selenium Videos
        • Selenium with Docker
      • Selenium with Python
      • WebdriverIO
        • Selenium Webdriver C# Tutorial
      • Cypress
      • Playwright
    • TestNG
    • Cucumber
    • Mobile Automation
      • Appium
    • API Testing
      • Postman
      • Rest Assured
      • SOAPUI
    • testRigor
    • Katalon
    • TestProject
    • Serenity BDD
    • Gradle- Build Tool
    • RPA-UiPath
    • Protractor
    • Windows Automation
  • Automation For Manual Testers
  • Services
  • Online Training
  • Contact us
  • About me
  • Follow us
    • Linkedin
    • Facebook Group
    • Facebook Page
    • Instagram

Automation

Selenium WebDriver tutorial Step by Step

You are here: Home / Basic Selenium / How to launch Microsoft Edge Browser using Selenium Webdriver

How to launch Microsoft Edge Browser using Selenium Webdriver

August 8, 2016 by Mukesh Otwani 8 Comments

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://learn-automation.com");
		
		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.

Filed Under: Basic Selenium Tagged With: launch Microsoft Edge Browser using Selenium Webdriver

Reader Interactions

Comments

  1. Vivek Akarte says

    June 29, 2022 at 8:33 PM

    hi Mukesh,

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

    Settings-. more tools-.>

    Reply
    • Mukesh Otwani says

      July 22, 2022 at 1:10 PM

      Hi Vivek, what is the use case?

      Reply
  2. Gaurav vats says

    November 29, 2021 at 1:41 PM

    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 ?

    Reply
    • Mukesh Otwani says

      December 2, 2021 at 10:22 AM

      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.

      Reply
  3. Jahnavi K Akkineni says

    September 13, 2019 at 9:34 PM

    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.

    Reply
    • Mukesh Otwani says

      September 14, 2019 at 1:38 PM

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

      Reply
  4. Vijayalakshmi says

    August 8, 2016 at 9:13 PM

    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.

    Reply
    • Mukesh Otwani says

      August 18, 2016 at 10:42 PM

      Hey Deepa,

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

      Reply

Leave a Reply Cancel 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.

Primary Sidebar

Free Selenium Videos

https://www.youtube.com/watch?v=w_iPCT1ETO4

Search topic

Top Posts & Pages

  • Selenium Webdriver tutorial for beginners
  • How To Fix Eclipse Autocomplete Or Code Suggestion In Eclipse
  • Selenium Webdriver C# Tutorial
  • WHAT ARE YOUR EXPECTATIONS FROM US?

Stay connected via Facebook

Stay connected via Facebook

Archives

Footer

Categories

Recent Post

  • API Testing Using Postman And RestAssured
  • Disable Personalise Your Web Experience Microsoft Edge Prompt In Selenium
  • How To Fix Error: No tests found In Playwright
  • How To Fix Eclipse Autocomplete Or Code Suggestion In Eclipse
  • Best and easy way to Group test cases in selenium

Top Posts & Pages

  • Selenium Webdriver tutorial for beginners
  • How To Fix Eclipse Autocomplete Or Code Suggestion In Eclipse
  • Selenium Webdriver C# Tutorial
  • WHAT ARE YOUR EXPECTATIONS FROM US?