Running a test on the Selenium standalone server

To run a test on Selenium server, we need to use RemoteWebDriver. The Remote class in the Selenium Python binding acts like a client and communicates with the Selenium server to run the tests on a remote machine. We need to use this class to instruct the Selenium server as to what configurations are needed to run a test on a remote machine and commands to run on selected browsers.

In addition to the Remote class, we need to set desired_capabilities, that is the browser, operating system, and any other configuration that we want to communicate to the Selenium standalone server to run the test. In this example, we will specify a platform and browser name as the desired capabilities required to run ...

Get Learning Selenium Testing Tools with Python now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.