Changed invalid webdriver environment variable name

This commit is contained in:
Rsl1122 2018-12-27 19:08:06 +02:00
parent 26c706a411
commit e5a0dabc80
3 changed files with 3 additions and 2 deletions

View File

@ -68,7 +68,7 @@ public class SeleniumExtension implements ParameterResolver, BeforeAllCallback,
if (SystemUtils.IS_OS_WINDOWS) {
return "C:\\chromedriver.exe";
}
return System.getenv("webdriver.chrome.driver");
return System.getenv(CIProperties.CHROME_DRIVER);
}
@Override

View File

@ -63,7 +63,7 @@ public class SeleniumDriver extends ExternalResource {
if (SystemUtils.IS_OS_WINDOWS) {
return "C:\\chromedriver.exe";
}
return System.getenv("webdriver.chrome.driver");
return System.getenv(CIProperties.CHROME_DRIVER);
}
public void newTab() {

View File

@ -8,6 +8,7 @@ package utilities;
public class CIProperties {
public static final String IS_TRAVIS = "TRAVIS";
public static final String CHROME_DRIVER = "CHROMEDRIVER";
private CIProperties() {
/* Static variable class */