Book Image

Learning Selenium Testing Tools - Third Edition

Book Image

Learning Selenium Testing Tools - Third Edition

Overview of this book

Table of Contents (22 chapters)
Learning Selenium Testing Tools Third Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Adding Selenium Remote Control for different machines


Selenium Grid is a very powerful tool when you add it to multiple operating systems. This allows us to check that, for instance, whether Firefox on Windows and Firefox on Linux is doing the same thing during a test. To register new remote controls to the grid from a machine other than the one hosting the hub, we need to tell it where the hub is.

Let's see this in action.

Selenium Server for different machines

For this section, you will need to have another machine available for you to use. This can be the Ubuntu machine that you needed for the previous chapter. If you have a small grid, then you can name it according to the operating system that it is running on.

  1. Open Command Prompt or a console.

  2. Run the java -jar selenium-server-standalone.jar -role node -hub http://<name of server>:4444/grid/register command.

  3. When you have run this, your grid site should look like the following:

We have added a new remote control to the grid from a...