Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (19.7k points)

As of the date of this post the name "Microsoft Edge" has just been officially announced as the default browser for the new Windows 10.

It may be premature to ask but I would like to know if a new Selenium WebDriver is available for it and if not if there is any telling how long we might expect to wait until we see one developed?

(A technical preview of Windows 10 has already been out so this doesn't seem like a foolish question to me.)

1 Answer

0 votes
by (27.5k points)

Microsoft has provided MicrosoftWebDriver which can be used for Edge browser.

Correct version of MicrosoftWebDriver needs to be downloaded, based on the OS Build number.

Steps to follow to get the OS Build number, Go to Start > Settings > System > About and note down the OS Build number.

Download the proper version of the driver from this link - https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/

In case the file that's downloaded is .msi, then install it to get the .exe driver. We can also download the direct .exe for  one of the releases.

After we download the MicrosoftWebDriver.exe, we can use it in our test script using either System.setProperty("webdriver.edge.driver", "driver location") or using environment variable

The sample script would be like this -

System.setProperty("webdriver.edge.driver","C:\\Program Files (x86)\\Microsoft Web Driver\\MicrosoftWebDriver.exe"); //put actual location

WebDriver driver = new EdgeDriver();

driver.get("your link");

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...