Time for action – writing tests against the grid - Selenium

Now that we have a Selenium Grid set up we need to write a test that works against the grid. Working against Selenium grid is exactly the same as working with Selenium WebDrive'sRemoteWebDriver. The Selenium Grid will find the relevant node and route all the commands to be executed there.

  1. Create a new test file.

  2. Populate it with a test script that accesses an item on the grid and then works
    against http://www.wisdomjobs.com/. Your script should look
    something like the following:

What just happened?

We have just seen how we can write tests that can run against the grid and then run them. When the tests are running, the grid will show which browsers are currently in use and which grid items are currently free.

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

Selenium Topics