Contact Info

Lasyard House, Underhill St. Bridgnorth WV16 4BB

Phone: +44 (0)333 939 8884

How to add Microsoft Edge Browser to your Selenium Grid

/, Selenium WebDriver/How to add Microsoft Edge Browser to your Selenium Grid

How to add Microsoft Edge Browser to your Selenium Grid

This blog follows on from the previous blog about how to set up Selenium Grid for WebDriver or for Ranorex Web Testing.

These instructions show you how to also include the Microsoft Edge Browser in your established Grid running on a Windows local host machine.

Step 1 – Download MicrosoftWebDriver

The first step is to download the Microsoft Web Driver Server paying particular note of the correct version to download depending on you exact O/S version. From:

https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/

Edge Browser Server

Extract the executable to the same directory as your other WebDriver Browser Servers.

MicrosoftWebDriver

Step 2 – Start the Selenium Server

Now start the Selenium Server, just as we did in the last post. Just running on the local host.

cd C:\Users\edgewords\Documents\SelServer
java -jar selenium-server-standalone-3.3.1.jar -role hub

Step 3 – Add a default Node

Add a default node to the grid, just as we did in the last post.

cd C:\Users\edgewords\Documents\SelServer
java -jar selenium-server-standalone-3.3.1.jar -role node -hub http://localhost:4444/grid/register

NOTE: We have started this node on the default port which is 5555

Step 4 – Add a new Node to the Grid for Edge

Now we are going to add the Edge Browser as a node in its own right. So we add a new node to the same grid, but on a different port number to our default node from step 3.

cd C:\Users\edgewords\Documents\SelServer
java -Dwebdriver.edge.driver="C:\Users\edgewords\Documents\SelServer\MicrosoftWebDriver.exe" -jar selenium-server-standalone-3.3.1.jar -port 5556 
-role node -hub http://localhost:4444/grid/register -browser "browserName=MicrosoftEdge, platform=WINDOWS, maxInstances=10"

Note, the port number I have used here is 5556. Also note that the command line above that starts with ‘java’ is over two lines, but is one line of code.

Step 5 – Open the Grid Console to check the available Nodes

Now we should have the Grid running with two Nodes. One Node on port 5555 for our default browsers, and a second on port 5556 for our Edge Browsers.

Open the Grid console, by opening a browser on the Selenium Server, and going to: http://localhost:4444/grid/console You should see:

Grid Console

 

By | 2017-07-07T09:15:59+00:00 July 7th, 2017|Categories: Selenium Grid, Selenium WebDriver|Tags: , , , |2 Comments

About the Author:

2 Comments

  1. Aracknid July 10, 2017 at 3:35 pm - Reply

    Thanks. Following you example, I was able to get it to work. Is it also possible to have Edge start on the same node as the other browsers? When I tried to change the port from 5556 to 5555 it threw an error. I thought I had seen other configs online where edge was displayed along with all the other browsers.
    Thanks.

  2. Tom Millichamp July 12, 2017 at 8:33 am - Reply

    I had the same issue, and believe that it can only be added to the grid on another node.
    Remember that you can have as many nodes as you like running on the same machine & under the same server. Also from Ranorex or WebDriver, it is only the one single Selenium Server address & port you have to deal with, the nodes are managed by the sever, so it doesn’t really matter how many there are.

Leave A Comment