Software Testing Material

A site for software testers. We provide free online tutorials on Manual Testing, Automation Testing - Selenium, QTP, LoadRunner, Testing Tools and many more.

  • Blog
  • Tutorials
    • Manual Testing
    • Java
    • Selenium
      • TestNG
      • Maven
      • Jenkins
    • Framework
    • Katalon
    • Agile
    • SQL
    • VBScript
    • API Testing
  • Tools
    • TestLodge
    • FrogLogic GUI Tool
    • CrossBrowserTesting
    • BrowserStack
    • TestCaseLab
    • Kobiton
    • PractiTest
    • Sikuli
    • Postman
  • Interview Q & A
    • Selenium
    • TestNG
    • Test Framework
    • Explain Framework
    • Manual Testing
    • Software QA
    • Agile
    • Testing As A Career
    • General Interview Questions
    • API Testing
    • SOAP
    • JIRA
    • Protractor
  • Free Resources
  • Guest Post
    • Guest Post Guidelines
  • Training

How To Launch Edge Browser Using Microsoft WebDriver

Last Updated on March 15, 2017 by Rajkumar

How To Launch Edge Browser Using Microsoft WebDriver:

Pre-requisites to use Edge with Selenium WebDriver:

  • Windows 10
  • Microsoft WebDriver

Download Microsoft WebDriver from here to launch Edge Browser. Download the proper version of the driver based on your OS build number. If the extension of the downloaded file is “.msi“, you need to install it to get the “.exe” driver.

Here in this post, we see how to run Selenium WebDriver Script in Edge Browser using Microsoft WebDriver

Assuming that you have already Installed Selenium WebDriver.

If you want to install Selenium WebDriver, click on the link below to install Selenium WebDriver in few clicks.

How To Download And Install Selenium WebDriver

Each and every browser has its own Driver to execute Selenium WebDriver Scripts. Selenium WebDriver supports browsers such as Mozilla Firefox, Google Chrome, Internet Explorer, Opera, Safari etc.,

How to Run Selenium Webdriver Script in Firefox browser – Old Version
How to Run Selenium Webdriver Script in Firefox browser – Gecko Driver
How to Run Selenium Webdriver Script in Internet Explorer
How to Run Selenium WebDriver Script in Chrome Browser

Execute the following script to launch Edge browser. It first lanuches Edge Browser and then open appropriate URL mentioned in the script. In order to launch Edge Browser, we need to specify the system property with the path of the MicrosoftWebDriver.exe file.

SCRIPT:

Java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package seleniumTutorial;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.edge.EdgeDriver;
public class GeckoDriver {
public static void main(String[] args) {
                //Change the path based on your file path
                //System.setProperty("webdriver.edge.driver","Path of geckodriver.exe")
                System.setProperty("webdriver.edge.driver","D://Selenium Training//Selenium Environment Files//MicrosoftWebDriver.exe");
                WebDriver driver = new EdgeDriver();
                
                driver.navigate.to("https://www.softwaretestingmaterial.com/software-testing-interview-questions-free-ebook/");
                
                System.out.println("Selenium Webdriver Script to launch edge browser using Microsoft WebDriver | Software Testing Material");
                
                driver.close();
        
}
}

If you are not regular reader of my blog then I highly recommend you to signup for the free email newsletter using the below link.

SUBSCRIBE TO GET FREE EBOOK AND REGULAR UPDATES ON SOFTWARE TESTING

Filed Under: Selenium

data-matched-content-rows-num="2" data-matched-content-columns-num="3"
Previous Article:
How To Scroll Web Page Down Or UP Using Selenium WebDriver
Next Article:
How To Resize Browser Window Using Selenium WebDriver

About the Author

Rajkumar SM is a founder of SoftwareTestingMaterial. He is a certified Software Test Engineer by profession and blogger & youtuber by choice. He has an extensive experience in the field of Software Testing. He writes here about Software Testing which includes both Manual and Automation Testing. He loves to be with his wife and cute little kid 'Freedom'.

ADVERTISEMENT

Froglogic-Squish-GUI-Tester
CrossBrowserTesting

TUTORIALS

  • Manual Testing Tutorial
  • Selenium Tutorial
  • TestNG Tutorial
  • VBScript Tutorial
  • Agile Methodology
  • SQL Tutorial for Testers
  • INTERVIEW QUESTIONS

  • Framework Interview Questions
  • Real Time Manual Testing
  • 100 Top Selenium Interview Questions
  • 30 Top TestNG Interview Questions
  • Agile Interview Questions
  • 80 SQL Interview Questions
  • TESTING TOOLS

  • Test Lodge
  • FrogLogic Squish
  • Cross Browser Testing
  • BrowserStack
  • Test Case Lab
  • Sikuli
  • © 2019 www.softwaretestingmaterial.com | About us | Privacy Policy | Contact us | Guest Post | Disclaimer | Terms of use | Sitemap