} else if ("htmlUnit".equalsIgnoreCase(browser)) {
driver = new HtmlUnitDriver();
} else if ("htmlUnit+js".equalsIgnoreCase(browser)) {
driver = new HtmlUnitDriver(true);
} else if ("opera".equalsIgnoreCase(browser)) {
driver = new OperaDriver();
} else if ("opera-mobile-tablet".equalsIgnoreCase(browser)) {
DesiredCapabilities capabilities = DesiredCapabilities.opera();
// tell opera mobile to use the tablet ui
capabilities.setCapability("opera.product", OperaProduct.MOBILE);
capabilities.setCapability("opera.arguments", "-tabletui -displaysize 860x600");
driver = new OperaDriver(capabilities);
} else if ("opera-mobile-phone".equalsIgnoreCase(browser)) {
DesiredCapabilities capabilities = DesiredCapabilities.opera();
// tell opera mobile to use the mobile handset ui
capabilities.setCapability("opera.product", OperaProduct.MOBILE);
capabilities.setCapability("opera.arguments", "-mobileui");
driver = new OperaDriver(capabilities);
} else if ("phantomjs".equalsIgnoreCase(browser)) {
driver = new FastPhantomJSDriver(DesiredCapabilities.phantomjs());
} else {
try {
driver = new RemoteWebDriverSupplier(browser).get();