Julia Pottinger
0

Run tests on Microsoft Edge browser using WebdriverIO

July 31, 2020

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.


Written by Julia Pottinger who lives and works in Jamaica building useful things. Follow her on Twitter and check out her YouTube Channel

Sign up for Newsletter

Share this blog

© 2022 Julia Pottinger - All Rights Reserved