Subscribe Watch on YouTube
All articles

Run tests on Microsoft Edge browser using WebdriverIO

Testing on a combination of browsers and Operating Systems helps to ensure that the application will work for a variety of customers.

To get your tests to run on Microsoft edge using WebdriverIO you first need to have the Microsoft Edge browser installed. You can download the latest version from Microsoft. Ensure that you select the correct operating system.

downloadedge

Next you are going to download the Webdriver for Microsoft Edge from the Microsoft developer website

MSEdgeDevSite

Open Microsoft browser and get the version that you have downloaded. edgeVersion

Ensure that you download the correct driver for the version of Microsoft Edge and Operating System that you have.

Download Correct Driver

Save the driver to the root of your project folder.

Save to project root

In your wdio.conf.js file update your capabilities with the following

browserName: 'MicrosoftEdge',
browserVersion: '<version>',
path: '/',

Open your terminal and start the msedgedriver by running the command

./msedgedriver -port=4444

Then run your tests.

Note that this normally takes a while for the tests to start for me, so give it some time.

If you get an error update your config file to the following instead

path: '/',
    capabilities: [{
        browserName: 'MicrosoftEdge',
    }],

Your tests should now pass.

Let me know if you were successful in getting your webdriverio tests to run on the Microsoft Edge Browser.

Check out the Youtube Tutorial for this blog.

Found it useful? Share it.
Julia Pottinger

Written by

Julia Pottinger

Hi, I'm Julia. I've been in QA for over a decade. I spend my days testing software and my own time building apps and games, and I write here to share what I learn, the practical, honest lessons you can actually use.

Comments 0

Share your thoughts, ask questions, or add to the conversation.

Be kind and constructive. Stay on topic. No spam or self-promotion.
Loading comments…