Microsoft: Automate Edge through WebDriver

Now, you can automate Edge with clockwork precision...

webdriver and edge
Credit: S. Glasskeys. Background by geralt

Last month, we looked at a method that can be used to open Microsoft's Edge browser from a command line or script, using a technique known as protocol activation. Since then, Microsoft has announced that Edge will support WebDriver, the cross-platform, browser agnostic API, paired with the Selenium tool suite. This power duo is already used by many developers to automate page testing through other web browsers.

Straight from the horse's mouth:

Today we’re announcing support for automated testing of Microsoft Edge through the W3C WebDriver standard.
WebDriver is an emerging standard through which Web developers can write tests to automate Web browsers for site testing. It provides a programmable remote control for developing complex user scenarios and running them in an automated fashion against your website in a browser.

So, if you think you'll find Edge automation useful for your web projects, download Microsoft's free WebDriver server software, and run the executable.

For more information, check out this sample C# code that shows how to use Webdriver to perform a short test scenario: Open a new Edge window, navigate to Bing to perform a web search, wait for search results, scan result titles for matching text, then finally, perform a click action to open a matching page link. 

Last but not least, you can test WebDriver methods from this Test Drive demo page, which runs many of the commands supported by Edge, listed here.

This article is published as part of the IDG Contributor Network. Want to Join?

ITWorld DealPost: The best in tech deals and discounts.
Shop Tech Products at Amazon