return webdriverInstanceFactory.newHtmlUnitDriver(enhancedCapabilities(capabilities));
}
private WebDriver phantomJSDriver() {
DesiredCapabilities capabilities = DesiredCapabilities.phantomjs();
PhantomJSCapabilityEnhancer enhancer = new PhantomJSCapabilityEnhancer(environmentVariables);
enhancer.enhanceCapabilities(capabilities);
return webdriverInstanceFactory.newPhantomDriver(enhancedCapabilities(capabilities));
}