diff --git a/plugins/web-plugin/src/main/java/ru/sbtqa/tag/pagefactory/web/configure/WebDriverManagerConfigurator.java b/plugins/web-plugin/src/main/java/ru/sbtqa/tag/pagefactory/web/configure/WebDriverManagerConfigurator.java index f88d802f..44ba5d4f 100644 --- a/plugins/web-plugin/src/main/java/ru/sbtqa/tag/pagefactory/web/configure/WebDriverManagerConfigurator.java +++ b/plugins/web-plugin/src/main/java/ru/sbtqa/tag/pagefactory/web/configure/WebDriverManagerConfigurator.java @@ -1,9 +1,5 @@ package ru.sbtqa.tag.pagefactory.web.configure; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParser; -import com.google.gson.stream.JsonReader; import io.github.bonigarcia.wdm.Architecture; import io.github.bonigarcia.wdm.BrowserManager; import io.github.bonigarcia.wdm.OperativeSystem; @@ -14,7 +10,6 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.Objects; import java.util.regex.Matcher; import java.util.regex.Pattern; import static org.apache.commons.lang3.SystemUtils.IS_OS_LINUX; @@ -62,8 +57,7 @@ private static void configureWebDriverManagerVersion(BrowserManager webDriverMan LOG.warn("You use IE browser. Switching to LATEST driver version. " + "You can specify driver version by using 'webdriver.version' param."); } else { - String detectedVersion = detectBrowserVersion(); - driverVersion = detectedVersion == null ? PROPERTIES.getBrowserVersion() : detectedVersion; + driverVersion = detectBrowserVersion(); } } else { driverVersion = PROPERTIES.getBrowserVersion(); diff --git a/pom.xml b/pom.xml index 00660d4d..182e726b 100644 --- a/pom.xml +++ b/pom.xml @@ -64,7 +64,7 @@ 2.22.1 1.9.0 1.1.2 - 2.4.0 + 2.4.1 5.2.3 2.13.0 4.1.87.Final