return new FirefoxProfile(profileDirectory);
}
protected FirefoxProfile buildFirefoxProfile() {
String profileName = ThucydidesSystemProperty.WEBDRIVER_FIREFOX_PROFILE.from(environmentVariables);
FilePathParser parser = new FilePathParser(environmentVariables);
DesiredCapabilities firefoxCapabilities = DesiredCapabilities.firefox();
if (StringUtils.isNotEmpty(profileName)) {
firefoxCapabilities.setCapability(FirefoxDriver.PROFILE, parser.getInstanciatedPath(profileName));
}
FirefoxProfile profile;
if (profileName == null) {