WebDriver driver = null;
logger.debug("Creating driver: " + driverType);
if ("HtmlUnit".equals(driverType)) {
boolean enableJavaScript = pc.get("ju-testing-ee.selenium.htmlUnit.enableJavascript", Boolean.class);
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"