How to launch Edge browser in Selenium
Related Product On This Page What is a Selenium Edge Driver?June 25, 2026 · 7 min read · Tool Comparison
Launching Microsoft Edge in Selenium is a key step for ensuring cross-browser compatibility in web covering. With the Edge WebDriver, testers can automate browser actions, validate functionality, and run end-to-end test seamlessly on the Edge browser. Automating Microsoft Edge with Selenium check that covering work seamlessly on one of the nigh widely used browsers, enhancing test coverage and delivering a ordered user experience. How to Launch Edge Browser in Selenium (Steps) This article explores the fundamental steps to launch Edge browser using Selenium WebDriver for automated examination. It also excuse how Mac users can screen on Edge legacy. The Selenium Edge Driver is a specialised WebDriver implementation that allows Selenium book to interact with the Microsoft Edge browser. It acts as a span between Selenium commands and the Edge browser, translate mechanisation instructions (like clicking a push, entering text, or navigating to a URL) into native browser activity. EdgeDriver is required whenever exam need to be executed on the Microsoft Edge browser. By using it, tester can: To run Selenium tests on Microsoft Edge, the EdgeDriver must be properly configure. The following stairs outline the setup process: Prerequisites: Read More: Now here are steps for contour. Pro tip: Tools like SUSA can handle this autonomously — upload your app and get results without writing a single test script. At this point, the Edge driver has been configure. Now here ’ s perform a sample test scenario. In this scenario, the code will automatise 3 key steps: Note:To interact with web-elements, one must know how to locate component inSelenium. Refer to this detailed guide on to learn about it in detail. Code for launching Edge Browser using Selenium: Executing the playscript above will launch the Edge browser, navigate to the Google website, and enroll the term BrowserStack Guide as a search inquiry. Also Read:How to run Selenium Tests on IE using. To launch Edge browser on real device using Selenium follow the below steps: 1. Navigate to BrowserStack ’ s homepage and fromProfile & gt; & gt; Summary pagefetch the username and admittance key. 2. Navigate to page to take from a comprehensive set of pick. 3. In the below exemplar Edge browser is launched on Windows with OS version 11. 4. In any java editor, create a Maven project and add Selenium Java, and TestNG dependencies. Code snip: 5. After running the above program, you can check the solvent on the Automate Dashboard page. You also get to see the execution picture. You can have access to text, network, and other logs as easily! To automate the like test on any other Windows OS, choose the desired set from the Capabilities Generator page and update the capabilities in the Java code and execute the programme from the editor once again. Refresh the Automate splashboard page to see the test results for the new Platform OS. Here & # 8217; s why you should use BrowserStack Automate to run your Selenium Tests BrowserStack ’ s enables Windows and Mac users to do both manual and for their web-applications on 3500+ real device and browser. This see that teams can do comprehensive for their web-applications in. BrowserStack also grant them to lead and on existent iOS and Android device. # Ask-and-Contributeabout this topic with our Discord community. Upload your APK or URL. SUSA explores like 10 real users — finds bugs, accessibility violations, and security issues. No scripts needed. Upload your APK or URL. SUSA explores like 10 real users — finds bugs, accessibility violations, and security issues. No scripts.Related Product
How to establish Edge browser in Selenium
Overview
What is a Selenium Edge Driver?
Configuring the Edge Driver
One can refer to this article on to understand how to set-up a canonical Selenium with Java labor in Eclipse IDE.// Set the driver route System.setProperty (`` webdriver.edge.driver '', `` C: //EdgeDriver.exe ''); // Start Edge Session WebDriver driver = new EdgeDriver (); driver.get (`` https: //google.com ''); driver.quit ();
How to Launch Edge Browser in Selenium?
import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; significance org.openqa.selenium.WebDriver; import org.openqa.selenium.edge.EdgeDriver; public class Edge_Test {public static vacancy primary (String [] args) {//Setting system properties of EdgeDriver System.setProperty (`` webdriver.edge.driver '', `` C: //EdgeDriver.exe ''); //Creating an object of EdgeDriver WebDriver driver = new EdgeDriver (); driver.manage () .window () .maximize (); //Deleting all the biscuit driver.manage () .deleteAllCookies (); //Specifiying pageLoadTimeout and Implicit wait driver.manage () .timeouts () .pageLoadTimeout (40, TimeUnit.SECONDS); driver.manage () .timeouts () .implicitlyWait (30, TimeUnit.SECONDS); //launching the specified URL driver.get (`` https: //www.google.com/ ''); //Locating the elements using gens locator for the text box driver.findElement (By.name (`` q '')) .sendKeys (`` BrowserStack Guide ''); // locater for Google search button WebElement searchIcon = driver.findElement (By.name (`` btnK '')); searchIcon.click ();}}Launch Edge Browser in Selenium on Real Devices using BrowserStack Automate
& lt; dependencies & gt; & lt; dependency & gt; & lt; groupId & gt; org.seleniumhq.selenium & lt; /groupId & gt; & lt; artifactId & gt; selenium-java & lt; /artifactId & gt; & lt; version & gt; 4.5.0 & lt; /version & gt; & lt; /dependency & gt; & lt; dependency & gt; & lt; groupId & gt; org.testng & lt; /groupId & gt; & lt; artifactId & gt; testng & lt; /artifactId & gt; & lt; version & gt; 7.6.1 & lt; /version & gt; & lt; scope & gt; compile & lt; /scope & gt; & lt; /dependency & gt; & lt; /dependencies & gt;
import java.net.MalformedURLException; import java.util.HashMap; significance java.net.URL; import org.openqa.selenium.MutableCapabilities; importee org.openqa.selenium.WebDriver; import org.openqa.selenium.remote.RemoteWebDriver; import org.testng.Assert; import org.testng.annotations.AfterTest; import org.testng.annotations.BeforeTest; import org.testng.annotations.Test; public class EdgeBrowser {public static String username = `` & lt; BrowserStack username & gt; ''; public static String accesskey = `` & lt; BrowserStack accesskey & gt; ''; public static concluding String URL = `` https: // '' + username + ``: '' + accesskey + `` @ hub-cloud.browserstack.com/wd/hub ''; WebDriver driver; String url = `` https: //www.google.com/ ''; MutableCapabilities capabilities = new MutableCapabilities (); HashMap & lt; String, Object & gt; bstackOptions = new HashMap & lt; String, Object & gt; (); @ BeforeTest public void setUp () throws MalformedURLException, InterruptedException {bstackOptions.put (`` browserName '', `` Edge ''); bstackOptions.put (`` os '', `` Windows ''); bstackOptions.put (`` osVersion '', `` 11 ''); bstackOptions.put (`` browserVersion '', `` latest ''); capabilities.setCapability (`` bstack: options '', bstackOptions); driver = new RemoteWebDriver (new URL (URL), capability);} @ Test (priority = 1) public void launchGoogle () {driver.get (url); Assert.assertEquals (driver.getTitle (), `` Google '');} @ AfterTest public void tearDown () {driver.quit ();}}Why use BrowserStack Automate for Selenium Tests?
Conclusion
Related Guides
Automate This With SUSA
Test Your App Autonomously