O'Reilly logo

Selenium 2 Testing Tools Beginner's Guide by David Burns

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

Time for action – adding a server with the defaults

In this section we are going to launch Selenium server and get it to register with the hub. We are going to assume that the browser on which you would like to register all known browsers and the hub are on the same machine as the grid node. We will pass in two required arguments which are: the server we are starting is a node and where the hub is. The selenium server will try and use port 5555. If that is not available you will get an error saying that the port is already in use. We can, and will in a future section, see how you can set the port manually.

  1. Open command prompt or console.
  2. Enter the command java -jar selenium-server-standalone..jar -role node -hub http://localhost:4444/grid/register ...

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