O'Reilly logo

Selenium Testing Tools Cookbook - Second Edition by Unmesh Gundecha

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding nodes to Selenium Grid for cross-browser testing

In this recipe, we will add nodes to the Selenium Hub that we set up in the previous recipe. We will use multiple OS platforms and browser combinations for cross-browser testing

How to do it...

We will add nodes with the following OS and browser configurations to the Hub:

Adding an IE node

Let's begin with a node which provides Internet Explorer capabilities to run on Windows. Open a new command prompt or terminal window and navigate to the location where Selenium server jar is located. To launch and add a node to the Grid, type the following command:

java -Dwebdriver.ie.driver="C:\SeDrivers\IEDriverServer.exe" -jar selenium-server-standalone-2.46.0.jar -role webdriver -browser "browserName=internet ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required