RemoteWebDriver for Opera:

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