Book Image

Selenium WebDriver Practical Guide

By : Satya Avasarala
Book Image

Selenium WebDriver Practical Guide

By: Satya Avasarala

Overview of this book

<p>Selenium WebDriver is an open source web UI automation tool implemented through a browser-specific browser driver, which sends commands to a browser and retrieves results.<br /><br />Selenium WebDriver Practical Guide will guide you through the various APIs of WebDriver which should be used in automation tests, followed by a discussion of the various WebDriver implementations available. This guide will support you by offering you access to source code fi les, including the essential HTML&nbsp; fi les, that allow you to work with jQuery and other examples throughout the book. Finally, you will receive an in-depth explanation of how to deal with the latest features of WebDriver through step-by-step practical tutorials.</p>
Table of Contents (17 chapters)
Selenium WebDriver Practical Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Understanding the node


As our hub is up and running, it's now time to start the node. Here, my node is a Mac OS X platform with Chrome, Firefox, and Safari installed on it. So, if any test script requests the hub for a Mac OS X platform, the hub will choose this node. Let us see how we can start the node. The command to start the node and register with the hub is as follows.

java –jar selenium-server-standalone-2.33.0.jar –role node –hub http://172.16.87.131:1111/grid/register

This will start the Selenium server in the node mode and register this node with the already started hub. If you go back to the Grid Console on the browser, you will see the following screenshot:

The preceding screenshot shows the node URL http://172.16.87.1:5555, which in this case is running on the MAC platform. By default, the number of browsers listed for every node is 11: five for Firefox, 5 for Chrome, and 1 for IE. This can be overridden by specifying the -browser option, which we will see in the Configuring...