driver = new HtmlUnitDriver(enableJavaScript);
} else if ("Chrome".equals(driverType)) {
System.setProperty("webdriver.chrome.driver", DriverRule.getChromeDriverExePath().toAbsolutePath().toString());
driver = new ChromeDriver();
} else {
throw new JuRuntimeException(String.format("Unsupported selenium driver type: %s. Check value of property %s"
, driverType
, PROP_DRIVER));
}
this.drivers.put(driverType, driver);