protected void setupLocalDriver(DesiredCapabilities desiredCapabilities) {
WebDriver driver;
if (BrowserUtil.isFirefox(desiredCapabilities)) {
String firefoxPath = getProperty("firefox.path");
if (firefoxPath != null) {
driver = new FirefoxDriver(new FirefoxBinary(new File(
firefoxPath)), null);
} else {
driver = new FirefoxDriver();
}
} else if (BrowserUtil.isChrome(desiredCapabilities)) {
String propertyName = "chrome.driver.path";
String chromeDriverPath = getProperty(propertyName);
if (chromeDriverPath == null) {