RemoteWebDriver for Internet Explorer:

URL HubUrl;
try 
{
    HubUrl = new URL(seleniumHubUrl);
} catch (MalformedURLException e1) {
    throw new ConfigurationException("The url for the selenium hub is invalid");
}
DesiredCapabilities ieCapabilities = DesiredCapabilities.internetExplorer();
ieCapabilities.setJavascriptEnabled(true);
ieCapabilities.setBrowserName(DesiredCapabilities.internetExplorer().getBrowserName());
ieCapabilities.setPlatform(org.openqa.selenium.Platform.WINDOWS);
ieCapabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);
driver = new RemoteWebDriver(HubUrl,ieCapabilities);
share me!:))Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInEmail this to someonePrint this page