Let's take a test script that we have executed locally; that is, where the test scripts and the browser were on the same machine:
@BeforeClasspublic void setup() { System.setProperty("webdriver.chrome.driver", "./src/test/resources/drivers/chromedriver"); driver = new ChromeDriver();}
The preceding test script creates an instance of Chrome Driver and launches the Chrome browser. Now, let's try to convert this test script to use Selenium Standalone Server that we started earlier. Before we do that, let's see the constructor of RemoteWebDriver, which is as follows:
RemoteWebDriver(java.net.URL remoteAddress, Capabilities desiredCapabilities)
The input parameters for the constructor ...