RemoteWebDriver for Firefox:

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