Before we start on how to execute a Selenium script on the cloud, we have to understand what is the existing way of test-execution using Selenium. Selenium comes with a powerful feature called Grid.
Selenium Grid is a very important component of Selenium suit. According to the Selenium docs, Grid allows us to execute multiple tests across different browsers, OS and machines in parallel. It is used to reduce the test execution time by configuring multiple machines/mobile devices which can run on different platforms and across various browsers to run tests in parallel.