Time for action – adding Selenium server for different machines - Selenium

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

  1. Open a command prompt or console.

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

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

What just happened?

We have added a new remote control to the grid from a machine other than where the Selenium Grid Hub is running. This is the first time that we have been able to set up our remote control instances in a grid. We learnt about the -hub argument that is needed when launching the selenium server. We then saw that it has updated the grid site that is running on the hub.

Now that we have this working as we expected, let us have a look at setting up the server to do specific tasks.

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Selenium Topics