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.
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.
Vivek Akarte says
hi Mukesh,
How can we use “more tools” option of edge browser setting in selenium.
Settings-. more tools-.>
Mukesh Otwani says
Hi Vivek, what is the use case?
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 ?
Mukesh Otwani says
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.
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.
Mukesh Otwani says
Jahnavi, Edge is not stable with Selenium as of now.
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.
Mukesh Otwani says
Hey Deepa,
Yes I agreed that it is in beta version and will keep you updated once new changes comes in Selenium 3