RemoteWebDriver for Chrome:

URL HubUrl;
try 
{
    HubUrl = new URL(seleniumHubUrl);
} catch (MalformedURLException e1) {
    throw new ConfigurationException("The url for the selenium hub is invalid");
}
DesiredCapabilities chCapabilities = DesiredCapabilities.chrome();
chCapabilities.setJavascriptEnabled(true);
chCapabilities.setBrowserName(DesiredCapabilities.chrome().getBrowserName());
driver = new RemoteWebDriver(HubUrl,chCapabilities);
share me!:))Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInEmail this to someone
Print this page