O'Reilly logo

Learning Selenium Testing Tools with Python by Unmesh Gundecha

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

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 ...

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