diff --git a/.github/workflows/release-maven-central.yml b/.github/workflows/release-maven-central.yml
index 75fd3f3..ff3dca3 100644
--- a/.github/workflows/release-maven-central.yml
+++ b/.github/workflows/release-maven-central.yml
@@ -18,7 +18,7 @@ jobs:
- name: Step 2 - Set up Maven Central Repository
uses: actions/setup-java@v3
with:
- java-version: "8"
+ java-version: "11"
distribution: "adopt"
server-id: ossrh
server-username: MVN_CENTRAL_USERNAME
diff --git a/README.md b/README.md
index fcf2ce5..6da8076 100644
--- a/README.md
+++ b/README.md
@@ -12,6 +12,11 @@ Most of performed methods are logged using LOG4J, so you can easily see a histor
We use interfaces where is possible, so you can implement your own version of target interface with no need to rewrite other classes.
+
+> ### Breaking news!
+> Starting from v4.4.0 onwards, this package requires Java 11 or higher, as Selenium has stopped support of Java 8.
+> The last version available for Java 8 is [v4.3.3](https://github.com/aquality-automation/aquality-selenium-java/releases/tag/v4.3.3)
+
### Quick start
To start the project using aquality.selenium framework, you can [download our template BDD project by this link.](https://github.com/aquality-automation/aquality-selenium-java-template)
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index edc5c0c..308af4a 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -25,7 +25,7 @@ jobs:
mavenPomFile: 'pom.xml'
mavenOptions: '-Xmx3072m'
javaHomeOption: 'JDKVersion'
- jdkVersionOption: '1.8'
+ jdkVersionOption: '11'
jdkArchitectureOption: 'x64'
publishJUnitResults: true
testResultsFiles: '**/surefire-reports/TEST-*.xml'
@@ -55,7 +55,7 @@ jobs:
mavenPomFile: 'pom.xml'
mavenOptions: '-Xmx3072m'
javaHomeOption: 'JDKVersion'
- jdkVersionOption: '1.8'
+ jdkVersionOption: '11'
jdkArchitectureOption: 'x64'
publishJUnitResults: true
testResultsFiles: '**/surefire-reports/TEST-*.xml'
diff --git a/pom.xml b/pom.xml
index 2539ac5..515b0b9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -82,12 +82,12 @@
com.github.aquality-automation
aquality-selenium-core
- 3.1.2
+ 4.0.0
org.apache.commons
commons-lang3
- 3.13.0
+ 3.14.0
com.fasterxml.jackson.core
@@ -97,7 +97,7 @@
org.slf4j
slf4j-simple
- 2.0.10
+ 2.0.12
test
@@ -109,7 +109,7 @@
org.testng
testng
- 7.5.1
+ 7.9.0
test
@@ -119,16 +119,16 @@
org.apache.maven.plugins
maven-compiler-plugin
- 3.1
+ 3.12.1
-
- 1.8
+
+ 11
org.jacoco
jacoco-maven-plugin
- 0.8.4
+ 0.8.11
pre-unit-test
@@ -156,7 +156,7 @@
org.apache.maven.plugins
maven-surefire-plugin
- 2.20
+ 3.2.5
${surefireArgLine} -Dfile.encoding=UTF-8
false
@@ -185,6 +185,7 @@
org.apache.maven.plugins
maven-source-plugin
+ 3.3.0
attach-sources
@@ -197,8 +198,9 @@
org.apache.maven.plugins
maven-javadoc-plugin
+ 3.6.3
-
+
@@ -212,7 +214,7 @@
org.apache.maven.plugins
maven-gpg-plugin
- 1.6
+ 3.1.0
sign-artifacts
@@ -232,7 +234,7 @@
org.sonatype.plugins
nexus-staging-maven-plugin
- 1.6.8
+ 1.6.13
true
ossrh
diff --git a/src/test/java/tests/usecases/devtools/DeviceEmulationTest.java b/src/test/java/tests/usecases/devtools/DeviceEmulationTest.java
index c9a6c16..47daf2e 100644
--- a/src/test/java/tests/usecases/devtools/DeviceEmulationTest.java
+++ b/src/test/java/tests/usecases/devtools/DeviceEmulationTest.java
@@ -3,8 +3,8 @@
import aquality.selenium.browser.AqualityServices;
import aquality.selenium.browser.devtools.EmulationHandling;
import com.google.common.collect.ImmutableMap;
-import org.openqa.selenium.devtools.v117.emulation.Emulation;
-import org.openqa.selenium.devtools.v117.emulation.model.DisplayFeature;
+import org.openqa.selenium.devtools.v122.emulation.Emulation;
+import org.openqa.selenium.devtools.v122.emulation.model.DisplayFeature;
import org.testng.Assert;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
@@ -44,7 +44,7 @@ public void setAndClearDeviceMetricsOverrideWithVersionSpecificParametersTest()
AqualityServices.getBrowser().devTools().sendCommand(Emulation.setDeviceMetricsOverride(
WIDTH, HEIGHT, SCALE_FACTOR, IS_MOBILE, Optional.empty(), Optional.empty(), Optional.empty(),
Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(),
- Optional.of(DISPLAY_FEATURE)
+ Optional.of(DISPLAY_FEATURE), Optional.empty()
));
AqualityServices.getLogger().info("success");
});
diff --git a/src/test/java/tests/usecases/devtools/NetworkSpeedEmulationTest.java b/src/test/java/tests/usecases/devtools/NetworkSpeedEmulationTest.java
index bfbc8ca..47da81e 100644
--- a/src/test/java/tests/usecases/devtools/NetworkSpeedEmulationTest.java
+++ b/src/test/java/tests/usecases/devtools/NetworkSpeedEmulationTest.java
@@ -2,7 +2,7 @@
import aquality.selenium.browser.AqualityServices;
import org.openqa.selenium.TimeoutException;
-import org.openqa.selenium.devtools.v117.network.model.ConnectionType;
+import org.openqa.selenium.devtools.v122.network.model.ConnectionType;
import org.testng.Assert;
import org.testng.annotations.Test;
import tests.BaseTest;
diff --git a/src/test/java/tests/usecases/devtools/OverrideUserAgentTest.java b/src/test/java/tests/usecases/devtools/OverrideUserAgentTest.java
index 19be87a..e1adc2a 100644
--- a/src/test/java/tests/usecases/devtools/OverrideUserAgentTest.java
+++ b/src/test/java/tests/usecases/devtools/OverrideUserAgentTest.java
@@ -8,7 +8,7 @@
import manytools.BrowserLanguageForm;
import manytools.UserAgentForm;
import org.openqa.selenium.devtools.idealized.Network;
-import org.openqa.selenium.devtools.v117.emulation.Emulation;
+import org.openqa.selenium.devtools.v122.emulation.Emulation;
import org.testng.Assert;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;