diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/com/mavlushechka/a1qa/driverUtils/WebDriverFactory.java | 2 | ||||
-rw-r--r-- | src/main/resources/config.json | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/com/mavlushechka/a1qa/driverUtils/WebDriverFactory.java b/src/main/java/com/mavlushechka/a1qa/driverUtils/WebDriverFactory.java index 7fde704..d7771ea 100644 --- a/src/main/java/com/mavlushechka/a1qa/driverUtils/WebDriverFactory.java +++ b/src/main/java/com/mavlushechka/a1qa/driverUtils/WebDriverFactory.java @@ -17,7 +17,7 @@ public class WebDriverFactory { } protected static WebDriver createWebDriver() { - switch (Browser.valueOf(StringUtils.convertToConstantCase(JSONParser.parseData("config", "browser.name")))) { + switch (Browser.valueOf(StringUtils.convertToConstantCase(System.getProperty("browser.name")))) { case CHROME -> { LoggerUtils.info("Creating ChromeDriver."); return createChromeDriver(); diff --git a/src/main/resources/config.json b/src/main/resources/config.json index a55d26a..e4aa511 100644 --- a/src/main/resources/config.json +++ b/src/main/resources/config.json @@ -1,6 +1,5 @@ { "browser": { - "name": "Firefox", "isIncognito": "true", "isKiosk": "true", "url": "https://jsonplaceholder.typicode.com" |