From 4e6d436190061aa428a00467ae9661541026f20e Mon Sep 17 00:00:00 2001 From: Boni Garcia Date: Mon, 20 May 2024 06:36:51 +0200 Subject: [PATCH] Bump to CDP v125 --- .../webdriver/junit4/ch05/cdp/BlockUrlJUnit4Test.java | 4 ++-- .../junit4/ch05/cdp/DeviceEmulationJUnit4Test.java | 2 +- .../ch05/cdp/EmulateNetworkConditionsJUnit4Test.java | 7 ++++--- .../webdriver/junit4/ch05/cdp/ExtraHeadersJUnit4Test.java | 4 ++-- .../ch05/cdp/FullPageScreenshotChromeJUnit4Test.java | 8 ++++---- .../junit4/ch05/cdp/GeolocationOverrideJUnit4Test.java | 2 +- .../webdriver/junit4/ch05/cdp/LoadInsecureJUnit4Test.java | 2 +- .../junit4/ch05/cdp/ManageCookiesJUnit4Test.java | 6 +++--- .../junit4/ch05/cdp/NetworkMonitoringJUnit4Test.java | 4 ++-- .../junit4/ch05/cdp/PerformanceMetricsJUnit4Test.java | 4 ++-- .../webdriver/seljup/ch05/cdp/BlockUrlSelJupTest.java | 4 ++-- .../seljup/ch05/cdp/DeviceEmulationSelJupTest.java | 2 +- .../ch05/cdp/EmulateNetworkConditionsSelJupTest.java | 7 ++++--- .../webdriver/seljup/ch05/cdp/ExtraHeadersSelJupTest.java | 4 ++-- .../ch05/cdp/FullPageScreenshotChromeSelJupTest.java | 8 ++++---- .../seljup/ch05/cdp/GeolocationOverrideSelJupTest.java | 2 +- .../webdriver/seljup/ch05/cdp/LoadInsecureSelJupTest.java | 2 +- .../seljup/ch05/cdp/ManageCookiesSelJupTest.java | 6 +++--- .../seljup/ch05/cdp/NetworkMonitoringSelJupTest.java | 4 ++-- .../seljup/ch05/cdp/PerformanceMetricsSelJupTest.java | 4 ++-- .../webdriver/jupiter/ch05/cdp/BlockUrlJupiterTest.java | 4 ++-- .../jupiter/ch05/cdp/DeviceEmulationJupiterTest.java | 2 +- .../ch05/cdp/EmulateNetworkConditionsJupiterTest.java | 7 ++++--- .../jupiter/ch05/cdp/ExtraHeadersJupiterTest.java | 4 ++-- .../ch05/cdp/FullPageScreenshotChromeJupiterTest.java | 8 ++++---- .../jupiter/ch05/cdp/GeolocationOverrideJupiterTest.java | 2 +- .../jupiter/ch05/cdp/LoadInsecureJupiterTest.java | 2 +- .../jupiter/ch05/cdp/ManageCookiesJupiterTest.java | 6 +++--- .../jupiter/ch05/cdp/NetworkMonitoringJupiterTest.java | 4 ++-- .../jupiter/ch05/cdp/PerformanceMetricsJupiterTest.java | 4 ++-- .../webdriver/testng/ch05/cdp/BlockUrlNGTest.java | 4 ++-- .../webdriver/testng/ch05/cdp/DeviceEmulationNGTest.java | 2 +- .../testng/ch05/cdp/EmulateNetworkConditionsNGTest.java | 7 ++++--- .../webdriver/testng/ch05/cdp/ExtraHeadersNGTest.java | 4 ++-- .../testng/ch05/cdp/FullPageScreenshotChromeNGTest.java | 8 ++++---- .../testng/ch05/cdp/GeolocationOverrideNGTest.java | 2 +- .../webdriver/testng/ch05/cdp/LoadInsecureNGTest.java | 2 +- .../webdriver/testng/ch05/cdp/ManageCookiesNGTest.java | 6 +++--- .../testng/ch05/cdp/NetworkMonitoringNGTest.java | 4 ++-- .../testng/ch05/cdp/PerformanceMetricsNGTest.java | 4 ++-- 40 files changed, 88 insertions(+), 84 deletions(-) diff --git a/selenium-webdriver-junit4/src/test/java/io/github/bonigarcia/webdriver/junit4/ch05/cdp/BlockUrlJUnit4Test.java b/selenium-webdriver-junit4/src/test/java/io/github/bonigarcia/webdriver/junit4/ch05/cdp/BlockUrlJUnit4Test.java index 1db4e7e21..f6f27e97d 100644 --- a/selenium-webdriver-junit4/src/test/java/io/github/bonigarcia/webdriver/junit4/ch05/cdp/BlockUrlJUnit4Test.java +++ b/selenium-webdriver-junit4/src/test/java/io/github/bonigarcia/webdriver/junit4/ch05/cdp/BlockUrlJUnit4Test.java @@ -29,8 +29,8 @@ import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.devtools.DevTools; -import org.openqa.selenium.devtools.v122.network.Network; -import org.openqa.selenium.devtools.v122.network.model.BlockedReason; +import org.openqa.selenium.devtools.v125.network.Network; +import org.openqa.selenium.devtools.v125.network.model.BlockedReason; import org.slf4j.Logger; import com.google.common.collect.ImmutableList; diff --git a/selenium-webdriver-junit4/src/test/java/io/github/bonigarcia/webdriver/junit4/ch05/cdp/DeviceEmulationJUnit4Test.java b/selenium-webdriver-junit4/src/test/java/io/github/bonigarcia/webdriver/junit4/ch05/cdp/DeviceEmulationJUnit4Test.java index d63d0b7bb..f5d750753 100644 --- a/selenium-webdriver-junit4/src/test/java/io/github/bonigarcia/webdriver/junit4/ch05/cdp/DeviceEmulationJUnit4Test.java +++ b/selenium-webdriver-junit4/src/test/java/io/github/bonigarcia/webdriver/junit4/ch05/cdp/DeviceEmulationJUnit4Test.java @@ -31,7 +31,7 @@ import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.devtools.DevTools; -import org.openqa.selenium.devtools.v122.network.Network; +import org.openqa.selenium.devtools.v125.network.Network; import org.slf4j.Logger; import io.github.bonigarcia.wdm.WebDriverManager; diff --git a/selenium-webdriver-junit4/src/test/java/io/github/bonigarcia/webdriver/junit4/ch05/cdp/EmulateNetworkConditionsJUnit4Test.java b/selenium-webdriver-junit4/src/test/java/io/github/bonigarcia/webdriver/junit4/ch05/cdp/EmulateNetworkConditionsJUnit4Test.java index ee27b8f35..a492a7883 100644 --- a/selenium-webdriver-junit4/src/test/java/io/github/bonigarcia/webdriver/junit4/ch05/cdp/EmulateNetworkConditionsJUnit4Test.java +++ b/selenium-webdriver-junit4/src/test/java/io/github/bonigarcia/webdriver/junit4/ch05/cdp/EmulateNetworkConditionsJUnit4Test.java @@ -29,8 +29,8 @@ import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.devtools.DevTools; -import org.openqa.selenium.devtools.v122.network.Network; -import org.openqa.selenium.devtools.v122.network.model.ConnectionType; +import org.openqa.selenium.devtools.v125.network.Network; +import org.openqa.selenium.devtools.v125.network.model.ConnectionType; import org.slf4j.Logger; import io.github.bonigarcia.wdm.WebDriverManager; @@ -61,7 +61,8 @@ public void testEmulateNetworkConditions() { devTools.send(Network.enable(Optional.empty(), Optional.empty(), Optional.empty())); devTools.send(Network.emulateNetworkConditions(false, 100, 50 * 1024, - 50 * 1024, Optional.of(ConnectionType.CELLULAR3G))); + 50 * 1024, Optional.of(ConnectionType.CELLULAR3G), + Optional.empty(), Optional.empty(), Optional.empty())); long initMillis = System.currentTimeMillis(); driver.get("https://bonigarcia.dev/selenium-webdriver-java/"); diff --git a/selenium-webdriver-junit4/src/test/java/io/github/bonigarcia/webdriver/junit4/ch05/cdp/ExtraHeadersJUnit4Test.java b/selenium-webdriver-junit4/src/test/java/io/github/bonigarcia/webdriver/junit4/ch05/cdp/ExtraHeadersJUnit4Test.java index 2e9bb9da1..a6aa91e94 100644 --- a/selenium-webdriver-junit4/src/test/java/io/github/bonigarcia/webdriver/junit4/ch05/cdp/ExtraHeadersJUnit4Test.java +++ b/selenium-webdriver-junit4/src/test/java/io/github/bonigarcia/webdriver/junit4/ch05/cdp/ExtraHeadersJUnit4Test.java @@ -32,8 +32,8 @@ import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.devtools.DevTools; -import org.openqa.selenium.devtools.v122.network.Network; -import org.openqa.selenium.devtools.v122.network.model.Headers; +import org.openqa.selenium.devtools.v125.network.Network; +import org.openqa.selenium.devtools.v125.network.model.Headers; import org.slf4j.Logger; import io.github.bonigarcia.wdm.WebDriverManager; diff --git a/selenium-webdriver-junit4/src/test/java/io/github/bonigarcia/webdriver/junit4/ch05/cdp/FullPageScreenshotChromeJUnit4Test.java b/selenium-webdriver-junit4/src/test/java/io/github/bonigarcia/webdriver/junit4/ch05/cdp/FullPageScreenshotChromeJUnit4Test.java index e842203ff..54225dfa5 100644 --- a/selenium-webdriver-junit4/src/test/java/io/github/bonigarcia/webdriver/junit4/ch05/cdp/FullPageScreenshotChromeJUnit4Test.java +++ b/selenium-webdriver-junit4/src/test/java/io/github/bonigarcia/webdriver/junit4/ch05/cdp/FullPageScreenshotChromeJUnit4Test.java @@ -33,10 +33,10 @@ import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.devtools.DevTools; -import org.openqa.selenium.devtools.v122.dom.model.Rect; -import org.openqa.selenium.devtools.v122.page.Page; -import org.openqa.selenium.devtools.v122.page.Page.GetLayoutMetricsResponse; -import org.openqa.selenium.devtools.v122.page.model.Viewport; +import org.openqa.selenium.devtools.v125.dom.model.Rect; +import org.openqa.selenium.devtools.v125.page.Page; +import org.openqa.selenium.devtools.v125.page.Page.GetLayoutMetricsResponse; +import org.openqa.selenium.devtools.v125.page.model.Viewport; import org.openqa.selenium.support.ui.ExpectedConditions; import org.openqa.selenium.support.ui.WebDriverWait; diff --git a/selenium-webdriver-junit4/src/test/java/io/github/bonigarcia/webdriver/junit4/ch05/cdp/GeolocationOverrideJUnit4Test.java b/selenium-webdriver-junit4/src/test/java/io/github/bonigarcia/webdriver/junit4/ch05/cdp/GeolocationOverrideJUnit4Test.java index 980bd901c..9cc930173 100644 --- a/selenium-webdriver-junit4/src/test/java/io/github/bonigarcia/webdriver/junit4/ch05/cdp/GeolocationOverrideJUnit4Test.java +++ b/selenium-webdriver-junit4/src/test/java/io/github/bonigarcia/webdriver/junit4/ch05/cdp/GeolocationOverrideJUnit4Test.java @@ -27,7 +27,7 @@ import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.devtools.DevTools; -import org.openqa.selenium.devtools.v122.emulation.Emulation; +import org.openqa.selenium.devtools.v125.emulation.Emulation; import org.openqa.selenium.support.ui.ExpectedConditions; import org.openqa.selenium.support.ui.WebDriverWait; diff --git a/selenium-webdriver-junit4/src/test/java/io/github/bonigarcia/webdriver/junit4/ch05/cdp/LoadInsecureJUnit4Test.java b/selenium-webdriver-junit4/src/test/java/io/github/bonigarcia/webdriver/junit4/ch05/cdp/LoadInsecureJUnit4Test.java index 2fc455d81..fdc019b06 100644 --- a/selenium-webdriver-junit4/src/test/java/io/github/bonigarcia/webdriver/junit4/ch05/cdp/LoadInsecureJUnit4Test.java +++ b/selenium-webdriver-junit4/src/test/java/io/github/bonigarcia/webdriver/junit4/ch05/cdp/LoadInsecureJUnit4Test.java @@ -29,7 +29,7 @@ import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.devtools.DevTools; -import org.openqa.selenium.devtools.v122.security.Security; +import org.openqa.selenium.devtools.v125.security.Security; import org.openqa.selenium.support.Color; import org.slf4j.Logger; diff --git a/selenium-webdriver-junit4/src/test/java/io/github/bonigarcia/webdriver/junit4/ch05/cdp/ManageCookiesJUnit4Test.java b/selenium-webdriver-junit4/src/test/java/io/github/bonigarcia/webdriver/junit4/ch05/cdp/ManageCookiesJUnit4Test.java index 370194c63..95edfd4cf 100644 --- a/selenium-webdriver-junit4/src/test/java/io/github/bonigarcia/webdriver/junit4/ch05/cdp/ManageCookiesJUnit4Test.java +++ b/selenium-webdriver-junit4/src/test/java/io/github/bonigarcia/webdriver/junit4/ch05/cdp/ManageCookiesJUnit4Test.java @@ -33,9 +33,9 @@ import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.devtools.DevTools; -import org.openqa.selenium.devtools.v122.network.Network; -import org.openqa.selenium.devtools.v122.network.model.Cookie; -import org.openqa.selenium.devtools.v122.storage.Storage; +import org.openqa.selenium.devtools.v125.network.Network; +import org.openqa.selenium.devtools.v125.network.model.Cookie; +import org.openqa.selenium.devtools.v125.storage.Storage; import org.slf4j.Logger; import io.github.bonigarcia.wdm.WebDriverManager; diff --git a/selenium-webdriver-junit4/src/test/java/io/github/bonigarcia/webdriver/junit4/ch05/cdp/NetworkMonitoringJUnit4Test.java b/selenium-webdriver-junit4/src/test/java/io/github/bonigarcia/webdriver/junit4/ch05/cdp/NetworkMonitoringJUnit4Test.java index b1ba01270..d342281f4 100644 --- a/selenium-webdriver-junit4/src/test/java/io/github/bonigarcia/webdriver/junit4/ch05/cdp/NetworkMonitoringJUnit4Test.java +++ b/selenium-webdriver-junit4/src/test/java/io/github/bonigarcia/webdriver/junit4/ch05/cdp/NetworkMonitoringJUnit4Test.java @@ -28,8 +28,8 @@ import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.devtools.DevTools; -import org.openqa.selenium.devtools.v122.network.Network; -import org.openqa.selenium.devtools.v122.network.model.Headers; +import org.openqa.selenium.devtools.v125.network.Network; +import org.openqa.selenium.devtools.v125.network.model.Headers; import org.slf4j.Logger; import io.github.bonigarcia.wdm.WebDriverManager; diff --git a/selenium-webdriver-junit4/src/test/java/io/github/bonigarcia/webdriver/junit4/ch05/cdp/PerformanceMetricsJUnit4Test.java b/selenium-webdriver-junit4/src/test/java/io/github/bonigarcia/webdriver/junit4/ch05/cdp/PerformanceMetricsJUnit4Test.java index 5b76c1355..bc9974bcc 100644 --- a/selenium-webdriver-junit4/src/test/java/io/github/bonigarcia/webdriver/junit4/ch05/cdp/PerformanceMetricsJUnit4Test.java +++ b/selenium-webdriver-junit4/src/test/java/io/github/bonigarcia/webdriver/junit4/ch05/cdp/PerformanceMetricsJUnit4Test.java @@ -30,8 +30,8 @@ import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.devtools.DevTools; -import org.openqa.selenium.devtools.v122.performance.Performance; -import org.openqa.selenium.devtools.v122.performance.model.Metric; +import org.openqa.selenium.devtools.v125.performance.Performance; +import org.openqa.selenium.devtools.v125.performance.model.Metric; import org.slf4j.Logger; import io.github.bonigarcia.wdm.WebDriverManager; diff --git a/selenium-webdriver-junit5-seljup/src/test/java/io/github/bonigarcia/webdriver/seljup/ch05/cdp/BlockUrlSelJupTest.java b/selenium-webdriver-junit5-seljup/src/test/java/io/github/bonigarcia/webdriver/seljup/ch05/cdp/BlockUrlSelJupTest.java index db0da674e..e3f672072 100644 --- a/selenium-webdriver-junit5-seljup/src/test/java/io/github/bonigarcia/webdriver/seljup/ch05/cdp/BlockUrlSelJupTest.java +++ b/selenium-webdriver-junit5-seljup/src/test/java/io/github/bonigarcia/webdriver/seljup/ch05/cdp/BlockUrlSelJupTest.java @@ -28,8 +28,8 @@ import org.junit.jupiter.api.extension.ExtendWith; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.devtools.DevTools; -import org.openqa.selenium.devtools.v122.network.Network; -import org.openqa.selenium.devtools.v122.network.model.BlockedReason; +import org.openqa.selenium.devtools.v125.network.Network; +import org.openqa.selenium.devtools.v125.network.model.BlockedReason; import org.slf4j.Logger; import com.google.common.collect.ImmutableList; diff --git a/selenium-webdriver-junit5-seljup/src/test/java/io/github/bonigarcia/webdriver/seljup/ch05/cdp/DeviceEmulationSelJupTest.java b/selenium-webdriver-junit5-seljup/src/test/java/io/github/bonigarcia/webdriver/seljup/ch05/cdp/DeviceEmulationSelJupTest.java index 6392af8a4..4d9df1695 100644 --- a/selenium-webdriver-junit5-seljup/src/test/java/io/github/bonigarcia/webdriver/seljup/ch05/cdp/DeviceEmulationSelJupTest.java +++ b/selenium-webdriver-junit5-seljup/src/test/java/io/github/bonigarcia/webdriver/seljup/ch05/cdp/DeviceEmulationSelJupTest.java @@ -28,7 +28,7 @@ import org.junit.jupiter.api.extension.ExtendWith; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.devtools.DevTools; -import org.openqa.selenium.devtools.v122.network.Network; +import org.openqa.selenium.devtools.v125.network.Network; import io.github.bonigarcia.seljup.SeleniumJupiter; diff --git a/selenium-webdriver-junit5-seljup/src/test/java/io/github/bonigarcia/webdriver/seljup/ch05/cdp/EmulateNetworkConditionsSelJupTest.java b/selenium-webdriver-junit5-seljup/src/test/java/io/github/bonigarcia/webdriver/seljup/ch05/cdp/EmulateNetworkConditionsSelJupTest.java index 379fdb9f6..4fd752388 100644 --- a/selenium-webdriver-junit5-seljup/src/test/java/io/github/bonigarcia/webdriver/seljup/ch05/cdp/EmulateNetworkConditionsSelJupTest.java +++ b/selenium-webdriver-junit5-seljup/src/test/java/io/github/bonigarcia/webdriver/seljup/ch05/cdp/EmulateNetworkConditionsSelJupTest.java @@ -27,8 +27,8 @@ import org.junit.jupiter.api.extension.ExtendWith; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.devtools.DevTools; -import org.openqa.selenium.devtools.v122.network.Network; -import org.openqa.selenium.devtools.v122.network.model.ConnectionType; +import org.openqa.selenium.devtools.v125.network.Network; +import org.openqa.selenium.devtools.v125.network.model.ConnectionType; import org.slf4j.Logger; import io.github.bonigarcia.seljup.SeleniumJupiter; @@ -43,7 +43,8 @@ void testEmulateNetworkConditions(ChromeDriver driver, DevTools devTools) { devTools.send(Network.enable(Optional.empty(), Optional.empty(), Optional.empty())); devTools.send(Network.emulateNetworkConditions(false, 100, 50 * 1024, - 50 * 1024, Optional.of(ConnectionType.CELLULAR3G))); + 50 * 1024, Optional.of(ConnectionType.CELLULAR3G), + Optional.empty(), Optional.empty(), Optional.empty())); long initMillis = System.currentTimeMillis(); driver.get("https://bonigarcia.dev/selenium-webdriver-java/"); diff --git a/selenium-webdriver-junit5-seljup/src/test/java/io/github/bonigarcia/webdriver/seljup/ch05/cdp/ExtraHeadersSelJupTest.java b/selenium-webdriver-junit5-seljup/src/test/java/io/github/bonigarcia/webdriver/seljup/ch05/cdp/ExtraHeadersSelJupTest.java index ca0ff966b..05be9ed6a 100644 --- a/selenium-webdriver-junit5-seljup/src/test/java/io/github/bonigarcia/webdriver/seljup/ch05/cdp/ExtraHeadersSelJupTest.java +++ b/selenium-webdriver-junit5-seljup/src/test/java/io/github/bonigarcia/webdriver/seljup/ch05/cdp/ExtraHeadersSelJupTest.java @@ -28,8 +28,8 @@ import org.openqa.selenium.By; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.devtools.DevTools; -import org.openqa.selenium.devtools.v122.network.Network; -import org.openqa.selenium.devtools.v122.network.model.Headers; +import org.openqa.selenium.devtools.v125.network.Network; +import org.openqa.selenium.devtools.v125.network.model.Headers; import io.github.bonigarcia.seljup.SeleniumJupiter; diff --git a/selenium-webdriver-junit5-seljup/src/test/java/io/github/bonigarcia/webdriver/seljup/ch05/cdp/FullPageScreenshotChromeSelJupTest.java b/selenium-webdriver-junit5-seljup/src/test/java/io/github/bonigarcia/webdriver/seljup/ch05/cdp/FullPageScreenshotChromeSelJupTest.java index 171d51c3b..bbd772561 100644 --- a/selenium-webdriver-junit5-seljup/src/test/java/io/github/bonigarcia/webdriver/seljup/ch05/cdp/FullPageScreenshotChromeSelJupTest.java +++ b/selenium-webdriver-junit5-seljup/src/test/java/io/github/bonigarcia/webdriver/seljup/ch05/cdp/FullPageScreenshotChromeSelJupTest.java @@ -31,10 +31,10 @@ import org.openqa.selenium.By; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.devtools.DevTools; -import org.openqa.selenium.devtools.v122.dom.model.Rect; -import org.openqa.selenium.devtools.v122.page.Page; -import org.openqa.selenium.devtools.v122.page.Page.GetLayoutMetricsResponse; -import org.openqa.selenium.devtools.v122.page.model.Viewport; +import org.openqa.selenium.devtools.v125.dom.model.Rect; +import org.openqa.selenium.devtools.v125.page.Page; +import org.openqa.selenium.devtools.v125.page.Page.GetLayoutMetricsResponse; +import org.openqa.selenium.devtools.v125.page.model.Viewport; import org.openqa.selenium.support.ui.ExpectedConditions; import org.openqa.selenium.support.ui.WebDriverWait; diff --git a/selenium-webdriver-junit5-seljup/src/test/java/io/github/bonigarcia/webdriver/seljup/ch05/cdp/GeolocationOverrideSelJupTest.java b/selenium-webdriver-junit5-seljup/src/test/java/io/github/bonigarcia/webdriver/seljup/ch05/cdp/GeolocationOverrideSelJupTest.java index 0437c72ba..846b7c8d3 100644 --- a/selenium-webdriver-junit5-seljup/src/test/java/io/github/bonigarcia/webdriver/seljup/ch05/cdp/GeolocationOverrideSelJupTest.java +++ b/selenium-webdriver-junit5-seljup/src/test/java/io/github/bonigarcia/webdriver/seljup/ch05/cdp/GeolocationOverrideSelJupTest.java @@ -26,7 +26,7 @@ import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.devtools.DevTools; -import org.openqa.selenium.devtools.v122.emulation.Emulation; +import org.openqa.selenium.devtools.v125.emulation.Emulation; import org.openqa.selenium.support.ui.ExpectedConditions; import org.openqa.selenium.support.ui.WebDriverWait; diff --git a/selenium-webdriver-junit5-seljup/src/test/java/io/github/bonigarcia/webdriver/seljup/ch05/cdp/LoadInsecureSelJupTest.java b/selenium-webdriver-junit5-seljup/src/test/java/io/github/bonigarcia/webdriver/seljup/ch05/cdp/LoadInsecureSelJupTest.java index f9331eaae..8e2b94e80 100644 --- a/selenium-webdriver-junit5-seljup/src/test/java/io/github/bonigarcia/webdriver/seljup/ch05/cdp/LoadInsecureSelJupTest.java +++ b/selenium-webdriver-junit5-seljup/src/test/java/io/github/bonigarcia/webdriver/seljup/ch05/cdp/LoadInsecureSelJupTest.java @@ -26,7 +26,7 @@ import org.openqa.selenium.By; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.devtools.DevTools; -import org.openqa.selenium.devtools.v122.security.Security; +import org.openqa.selenium.devtools.v125.security.Security; import org.openqa.selenium.support.Color; import io.github.bonigarcia.seljup.SeleniumJupiter; diff --git a/selenium-webdriver-junit5-seljup/src/test/java/io/github/bonigarcia/webdriver/seljup/ch05/cdp/ManageCookiesSelJupTest.java b/selenium-webdriver-junit5-seljup/src/test/java/io/github/bonigarcia/webdriver/seljup/ch05/cdp/ManageCookiesSelJupTest.java index 81f749053..d6e3504c0 100644 --- a/selenium-webdriver-junit5-seljup/src/test/java/io/github/bonigarcia/webdriver/seljup/ch05/cdp/ManageCookiesSelJupTest.java +++ b/selenium-webdriver-junit5-seljup/src/test/java/io/github/bonigarcia/webdriver/seljup/ch05/cdp/ManageCookiesSelJupTest.java @@ -32,9 +32,9 @@ import org.openqa.selenium.By; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.devtools.DevTools; -import org.openqa.selenium.devtools.v122.network.Network; -import org.openqa.selenium.devtools.v122.network.model.Cookie; -import org.openqa.selenium.devtools.v122.storage.Storage; +import org.openqa.selenium.devtools.v125.network.Network; +import org.openqa.selenium.devtools.v125.network.model.Cookie; +import org.openqa.selenium.devtools.v125.storage.Storage; import org.slf4j.Logger; import io.github.bonigarcia.seljup.SeleniumJupiter; diff --git a/selenium-webdriver-junit5-seljup/src/test/java/io/github/bonigarcia/webdriver/seljup/ch05/cdp/NetworkMonitoringSelJupTest.java b/selenium-webdriver-junit5-seljup/src/test/java/io/github/bonigarcia/webdriver/seljup/ch05/cdp/NetworkMonitoringSelJupTest.java index e87a950b4..750956f44 100644 --- a/selenium-webdriver-junit5-seljup/src/test/java/io/github/bonigarcia/webdriver/seljup/ch05/cdp/NetworkMonitoringSelJupTest.java +++ b/selenium-webdriver-junit5-seljup/src/test/java/io/github/bonigarcia/webdriver/seljup/ch05/cdp/NetworkMonitoringSelJupTest.java @@ -26,8 +26,8 @@ import org.junit.jupiter.api.extension.ExtendWith; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.devtools.DevTools; -import org.openqa.selenium.devtools.v122.network.Network; -import org.openqa.selenium.devtools.v122.network.model.Headers; +import org.openqa.selenium.devtools.v125.network.Network; +import org.openqa.selenium.devtools.v125.network.model.Headers; import org.slf4j.Logger; import io.github.bonigarcia.seljup.SeleniumJupiter; diff --git a/selenium-webdriver-junit5-seljup/src/test/java/io/github/bonigarcia/webdriver/seljup/ch05/cdp/PerformanceMetricsSelJupTest.java b/selenium-webdriver-junit5-seljup/src/test/java/io/github/bonigarcia/webdriver/seljup/ch05/cdp/PerformanceMetricsSelJupTest.java index be4bf9cae..e5dd94192 100644 --- a/selenium-webdriver-junit5-seljup/src/test/java/io/github/bonigarcia/webdriver/seljup/ch05/cdp/PerformanceMetricsSelJupTest.java +++ b/selenium-webdriver-junit5-seljup/src/test/java/io/github/bonigarcia/webdriver/seljup/ch05/cdp/PerformanceMetricsSelJupTest.java @@ -29,8 +29,8 @@ import org.junit.jupiter.api.extension.ExtendWith; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.devtools.DevTools; -import org.openqa.selenium.devtools.v122.performance.Performance; -import org.openqa.selenium.devtools.v122.performance.model.Metric; +import org.openqa.selenium.devtools.v125.performance.Performance; +import org.openqa.selenium.devtools.v125.performance.model.Metric; import org.slf4j.Logger; import io.github.bonigarcia.seljup.SeleniumJupiter; diff --git a/selenium-webdriver-junit5/src/test/java/io/github/bonigarcia/webdriver/jupiter/ch05/cdp/BlockUrlJupiterTest.java b/selenium-webdriver-junit5/src/test/java/io/github/bonigarcia/webdriver/jupiter/ch05/cdp/BlockUrlJupiterTest.java index c4944b50d..0f388341f 100644 --- a/selenium-webdriver-junit5/src/test/java/io/github/bonigarcia/webdriver/jupiter/ch05/cdp/BlockUrlJupiterTest.java +++ b/selenium-webdriver-junit5/src/test/java/io/github/bonigarcia/webdriver/jupiter/ch05/cdp/BlockUrlJupiterTest.java @@ -29,8 +29,8 @@ import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.devtools.DevTools; -import org.openqa.selenium.devtools.v122.network.Network; -import org.openqa.selenium.devtools.v122.network.model.BlockedReason; +import org.openqa.selenium.devtools.v125.network.Network; +import org.openqa.selenium.devtools.v125.network.model.BlockedReason; import org.slf4j.Logger; import com.google.common.collect.ImmutableList; diff --git a/selenium-webdriver-junit5/src/test/java/io/github/bonigarcia/webdriver/jupiter/ch05/cdp/DeviceEmulationJupiterTest.java b/selenium-webdriver-junit5/src/test/java/io/github/bonigarcia/webdriver/jupiter/ch05/cdp/DeviceEmulationJupiterTest.java index 614a85ff7..8f7dec0c3 100644 --- a/selenium-webdriver-junit5/src/test/java/io/github/bonigarcia/webdriver/jupiter/ch05/cdp/DeviceEmulationJupiterTest.java +++ b/selenium-webdriver-junit5/src/test/java/io/github/bonigarcia/webdriver/jupiter/ch05/cdp/DeviceEmulationJupiterTest.java @@ -31,7 +31,7 @@ import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.devtools.DevTools; -import org.openqa.selenium.devtools.v122.network.Network; +import org.openqa.selenium.devtools.v125.network.Network; import org.slf4j.Logger; import io.github.bonigarcia.wdm.WebDriverManager; diff --git a/selenium-webdriver-junit5/src/test/java/io/github/bonigarcia/webdriver/jupiter/ch05/cdp/EmulateNetworkConditionsJupiterTest.java b/selenium-webdriver-junit5/src/test/java/io/github/bonigarcia/webdriver/jupiter/ch05/cdp/EmulateNetworkConditionsJupiterTest.java index 272157889..05526cac9 100644 --- a/selenium-webdriver-junit5/src/test/java/io/github/bonigarcia/webdriver/jupiter/ch05/cdp/EmulateNetworkConditionsJupiterTest.java +++ b/selenium-webdriver-junit5/src/test/java/io/github/bonigarcia/webdriver/jupiter/ch05/cdp/EmulateNetworkConditionsJupiterTest.java @@ -29,8 +29,8 @@ import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.devtools.DevTools; -import org.openqa.selenium.devtools.v122.network.Network; -import org.openqa.selenium.devtools.v122.network.model.ConnectionType; +import org.openqa.selenium.devtools.v125.network.Network; +import org.openqa.selenium.devtools.v125.network.model.ConnectionType; import org.slf4j.Logger; import io.github.bonigarcia.wdm.WebDriverManager; @@ -61,7 +61,8 @@ void testEmulateNetworkConditions() { devTools.send(Network.enable(Optional.empty(), Optional.empty(), Optional.empty())); devTools.send(Network.emulateNetworkConditions(false, 100, 50 * 1024, - 50 * 1024, Optional.of(ConnectionType.CELLULAR3G))); + 50 * 1024, Optional.of(ConnectionType.CELLULAR3G), + Optional.empty(), Optional.empty(), Optional.empty())); long initMillis = System.currentTimeMillis(); driver.get("https://bonigarcia.dev/selenium-webdriver-java/"); diff --git a/selenium-webdriver-junit5/src/test/java/io/github/bonigarcia/webdriver/jupiter/ch05/cdp/ExtraHeadersJupiterTest.java b/selenium-webdriver-junit5/src/test/java/io/github/bonigarcia/webdriver/jupiter/ch05/cdp/ExtraHeadersJupiterTest.java index a57286d65..cc502f5de 100644 --- a/selenium-webdriver-junit5/src/test/java/io/github/bonigarcia/webdriver/jupiter/ch05/cdp/ExtraHeadersJupiterTest.java +++ b/selenium-webdriver-junit5/src/test/java/io/github/bonigarcia/webdriver/jupiter/ch05/cdp/ExtraHeadersJupiterTest.java @@ -32,8 +32,8 @@ import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.devtools.DevTools; -import org.openqa.selenium.devtools.v122.network.Network; -import org.openqa.selenium.devtools.v122.network.model.Headers; +import org.openqa.selenium.devtools.v125.network.Network; +import org.openqa.selenium.devtools.v125.network.model.Headers; import org.slf4j.Logger; import io.github.bonigarcia.wdm.WebDriverManager; diff --git a/selenium-webdriver-junit5/src/test/java/io/github/bonigarcia/webdriver/jupiter/ch05/cdp/FullPageScreenshotChromeJupiterTest.java b/selenium-webdriver-junit5/src/test/java/io/github/bonigarcia/webdriver/jupiter/ch05/cdp/FullPageScreenshotChromeJupiterTest.java index cbe5a07ab..8c7ed740c 100644 --- a/selenium-webdriver-junit5/src/test/java/io/github/bonigarcia/webdriver/jupiter/ch05/cdp/FullPageScreenshotChromeJupiterTest.java +++ b/selenium-webdriver-junit5/src/test/java/io/github/bonigarcia/webdriver/jupiter/ch05/cdp/FullPageScreenshotChromeJupiterTest.java @@ -33,10 +33,10 @@ import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.devtools.DevTools; -import org.openqa.selenium.devtools.v122.dom.model.Rect; -import org.openqa.selenium.devtools.v122.page.Page; -import org.openqa.selenium.devtools.v122.page.Page.GetLayoutMetricsResponse; -import org.openqa.selenium.devtools.v122.page.model.Viewport; +import org.openqa.selenium.devtools.v125.dom.model.Rect; +import org.openqa.selenium.devtools.v125.page.Page; +import org.openqa.selenium.devtools.v125.page.Page.GetLayoutMetricsResponse; +import org.openqa.selenium.devtools.v125.page.model.Viewport; import org.openqa.selenium.support.ui.ExpectedConditions; import org.openqa.selenium.support.ui.WebDriverWait; diff --git a/selenium-webdriver-junit5/src/test/java/io/github/bonigarcia/webdriver/jupiter/ch05/cdp/GeolocationOverrideJupiterTest.java b/selenium-webdriver-junit5/src/test/java/io/github/bonigarcia/webdriver/jupiter/ch05/cdp/GeolocationOverrideJupiterTest.java index f075d9b9e..6861d449d 100644 --- a/selenium-webdriver-junit5/src/test/java/io/github/bonigarcia/webdriver/jupiter/ch05/cdp/GeolocationOverrideJupiterTest.java +++ b/selenium-webdriver-junit5/src/test/java/io/github/bonigarcia/webdriver/jupiter/ch05/cdp/GeolocationOverrideJupiterTest.java @@ -27,7 +27,7 @@ import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.devtools.DevTools; -import org.openqa.selenium.devtools.v122.emulation.Emulation; +import org.openqa.selenium.devtools.v125.emulation.Emulation; import org.openqa.selenium.support.ui.ExpectedConditions; import org.openqa.selenium.support.ui.WebDriverWait; diff --git a/selenium-webdriver-junit5/src/test/java/io/github/bonigarcia/webdriver/jupiter/ch05/cdp/LoadInsecureJupiterTest.java b/selenium-webdriver-junit5/src/test/java/io/github/bonigarcia/webdriver/jupiter/ch05/cdp/LoadInsecureJupiterTest.java index 216ddfe05..37e5fef71 100644 --- a/selenium-webdriver-junit5/src/test/java/io/github/bonigarcia/webdriver/jupiter/ch05/cdp/LoadInsecureJupiterTest.java +++ b/selenium-webdriver-junit5/src/test/java/io/github/bonigarcia/webdriver/jupiter/ch05/cdp/LoadInsecureJupiterTest.java @@ -29,7 +29,7 @@ import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.devtools.DevTools; -import org.openqa.selenium.devtools.v122.security.Security; +import org.openqa.selenium.devtools.v125.security.Security; import org.openqa.selenium.support.Color; import org.slf4j.Logger; diff --git a/selenium-webdriver-junit5/src/test/java/io/github/bonigarcia/webdriver/jupiter/ch05/cdp/ManageCookiesJupiterTest.java b/selenium-webdriver-junit5/src/test/java/io/github/bonigarcia/webdriver/jupiter/ch05/cdp/ManageCookiesJupiterTest.java index 33cc7129c..bce9d4556 100644 --- a/selenium-webdriver-junit5/src/test/java/io/github/bonigarcia/webdriver/jupiter/ch05/cdp/ManageCookiesJupiterTest.java +++ b/selenium-webdriver-junit5/src/test/java/io/github/bonigarcia/webdriver/jupiter/ch05/cdp/ManageCookiesJupiterTest.java @@ -33,9 +33,9 @@ import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.devtools.DevTools; -import org.openqa.selenium.devtools.v122.network.Network; -import org.openqa.selenium.devtools.v122.network.model.Cookie; -import org.openqa.selenium.devtools.v122.storage.Storage; +import org.openqa.selenium.devtools.v125.network.Network; +import org.openqa.selenium.devtools.v125.network.model.Cookie; +import org.openqa.selenium.devtools.v125.storage.Storage; import org.slf4j.Logger; import io.github.bonigarcia.wdm.WebDriverManager; diff --git a/selenium-webdriver-junit5/src/test/java/io/github/bonigarcia/webdriver/jupiter/ch05/cdp/NetworkMonitoringJupiterTest.java b/selenium-webdriver-junit5/src/test/java/io/github/bonigarcia/webdriver/jupiter/ch05/cdp/NetworkMonitoringJupiterTest.java index 3a95ed57e..e20e681ee 100644 --- a/selenium-webdriver-junit5/src/test/java/io/github/bonigarcia/webdriver/jupiter/ch05/cdp/NetworkMonitoringJupiterTest.java +++ b/selenium-webdriver-junit5/src/test/java/io/github/bonigarcia/webdriver/jupiter/ch05/cdp/NetworkMonitoringJupiterTest.java @@ -28,8 +28,8 @@ import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.devtools.DevTools; -import org.openqa.selenium.devtools.v122.network.Network; -import org.openqa.selenium.devtools.v122.network.model.Headers; +import org.openqa.selenium.devtools.v125.network.Network; +import org.openqa.selenium.devtools.v125.network.model.Headers; import org.slf4j.Logger; import io.github.bonigarcia.wdm.WebDriverManager; diff --git a/selenium-webdriver-junit5/src/test/java/io/github/bonigarcia/webdriver/jupiter/ch05/cdp/PerformanceMetricsJupiterTest.java b/selenium-webdriver-junit5/src/test/java/io/github/bonigarcia/webdriver/jupiter/ch05/cdp/PerformanceMetricsJupiterTest.java index 6cd603923..a55148682 100644 --- a/selenium-webdriver-junit5/src/test/java/io/github/bonigarcia/webdriver/jupiter/ch05/cdp/PerformanceMetricsJupiterTest.java +++ b/selenium-webdriver-junit5/src/test/java/io/github/bonigarcia/webdriver/jupiter/ch05/cdp/PerformanceMetricsJupiterTest.java @@ -30,8 +30,8 @@ import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.devtools.DevTools; -import org.openqa.selenium.devtools.v122.performance.Performance; -import org.openqa.selenium.devtools.v122.performance.model.Metric; +import org.openqa.selenium.devtools.v125.performance.Performance; +import org.openqa.selenium.devtools.v125.performance.model.Metric; import org.slf4j.Logger; import io.github.bonigarcia.wdm.WebDriverManager; diff --git a/selenium-webdriver-testng/src/test/java/io/github/bonigarcia/webdriver/testng/ch05/cdp/BlockUrlNGTest.java b/selenium-webdriver-testng/src/test/java/io/github/bonigarcia/webdriver/testng/ch05/cdp/BlockUrlNGTest.java index ee16c3e9a..bfcb48049 100644 --- a/selenium-webdriver-testng/src/test/java/io/github/bonigarcia/webdriver/testng/ch05/cdp/BlockUrlNGTest.java +++ b/selenium-webdriver-testng/src/test/java/io/github/bonigarcia/webdriver/testng/ch05/cdp/BlockUrlNGTest.java @@ -26,8 +26,8 @@ import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.devtools.DevTools; -import org.openqa.selenium.devtools.v122.network.Network; -import org.openqa.selenium.devtools.v122.network.model.BlockedReason; +import org.openqa.selenium.devtools.v125.network.Network; +import org.openqa.selenium.devtools.v125.network.model.BlockedReason; import org.slf4j.Logger; import org.testng.annotations.AfterMethod; import org.testng.annotations.BeforeMethod; diff --git a/selenium-webdriver-testng/src/test/java/io/github/bonigarcia/webdriver/testng/ch05/cdp/DeviceEmulationNGTest.java b/selenium-webdriver-testng/src/test/java/io/github/bonigarcia/webdriver/testng/ch05/cdp/DeviceEmulationNGTest.java index 6d1a3d007..97bfb336b 100644 --- a/selenium-webdriver-testng/src/test/java/io/github/bonigarcia/webdriver/testng/ch05/cdp/DeviceEmulationNGTest.java +++ b/selenium-webdriver-testng/src/test/java/io/github/bonigarcia/webdriver/testng/ch05/cdp/DeviceEmulationNGTest.java @@ -28,7 +28,7 @@ import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.devtools.DevTools; -import org.openqa.selenium.devtools.v122.network.Network; +import org.openqa.selenium.devtools.v125.network.Network; import org.slf4j.Logger; import org.testng.annotations.AfterMethod; import org.testng.annotations.BeforeMethod; diff --git a/selenium-webdriver-testng/src/test/java/io/github/bonigarcia/webdriver/testng/ch05/cdp/EmulateNetworkConditionsNGTest.java b/selenium-webdriver-testng/src/test/java/io/github/bonigarcia/webdriver/testng/ch05/cdp/EmulateNetworkConditionsNGTest.java index b16f055f2..b53ef9b84 100644 --- a/selenium-webdriver-testng/src/test/java/io/github/bonigarcia/webdriver/testng/ch05/cdp/EmulateNetworkConditionsNGTest.java +++ b/selenium-webdriver-testng/src/test/java/io/github/bonigarcia/webdriver/testng/ch05/cdp/EmulateNetworkConditionsNGTest.java @@ -26,8 +26,8 @@ import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.devtools.DevTools; -import org.openqa.selenium.devtools.v122.network.Network; -import org.openqa.selenium.devtools.v122.network.model.ConnectionType; +import org.openqa.selenium.devtools.v125.network.Network; +import org.openqa.selenium.devtools.v125.network.model.ConnectionType; import org.slf4j.Logger; import org.testng.annotations.AfterMethod; import org.testng.annotations.BeforeMethod; @@ -61,7 +61,8 @@ public void testEmulateNetworkConditions() { devTools.send(Network.enable(Optional.empty(), Optional.empty(), Optional.empty())); devTools.send(Network.emulateNetworkConditions(false, 100, 50 * 1024, - 50 * 1024, Optional.of(ConnectionType.CELLULAR3G))); + 50 * 1024, Optional.of(ConnectionType.CELLULAR3G), + Optional.empty(), Optional.empty(), Optional.empty())); long initMillis = System.currentTimeMillis(); driver.get("https://bonigarcia.dev/selenium-webdriver-java/"); diff --git a/selenium-webdriver-testng/src/test/java/io/github/bonigarcia/webdriver/testng/ch05/cdp/ExtraHeadersNGTest.java b/selenium-webdriver-testng/src/test/java/io/github/bonigarcia/webdriver/testng/ch05/cdp/ExtraHeadersNGTest.java index f058b6cc0..6e9855bbb 100644 --- a/selenium-webdriver-testng/src/test/java/io/github/bonigarcia/webdriver/testng/ch05/cdp/ExtraHeadersNGTest.java +++ b/selenium-webdriver-testng/src/test/java/io/github/bonigarcia/webdriver/testng/ch05/cdp/ExtraHeadersNGTest.java @@ -29,8 +29,8 @@ import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.devtools.DevTools; -import org.openqa.selenium.devtools.v122.network.Network; -import org.openqa.selenium.devtools.v122.network.model.Headers; +import org.openqa.selenium.devtools.v125.network.Network; +import org.openqa.selenium.devtools.v125.network.model.Headers; import org.slf4j.Logger; import org.testng.annotations.AfterMethod; import org.testng.annotations.BeforeMethod; diff --git a/selenium-webdriver-testng/src/test/java/io/github/bonigarcia/webdriver/testng/ch05/cdp/FullPageScreenshotChromeNGTest.java b/selenium-webdriver-testng/src/test/java/io/github/bonigarcia/webdriver/testng/ch05/cdp/FullPageScreenshotChromeNGTest.java index 5b118cb69..dc0ed221d 100644 --- a/selenium-webdriver-testng/src/test/java/io/github/bonigarcia/webdriver/testng/ch05/cdp/FullPageScreenshotChromeNGTest.java +++ b/selenium-webdriver-testng/src/test/java/io/github/bonigarcia/webdriver/testng/ch05/cdp/FullPageScreenshotChromeNGTest.java @@ -30,10 +30,10 @@ import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.devtools.DevTools; -import org.openqa.selenium.devtools.v122.dom.model.Rect; -import org.openqa.selenium.devtools.v122.page.Page; -import org.openqa.selenium.devtools.v122.page.Page.GetLayoutMetricsResponse; -import org.openqa.selenium.devtools.v122.page.model.Viewport; +import org.openqa.selenium.devtools.v125.dom.model.Rect; +import org.openqa.selenium.devtools.v125.page.Page; +import org.openqa.selenium.devtools.v125.page.Page.GetLayoutMetricsResponse; +import org.openqa.selenium.devtools.v125.page.model.Viewport; import org.openqa.selenium.support.ui.ExpectedConditions; import org.openqa.selenium.support.ui.WebDriverWait; import org.testng.annotations.AfterMethod; diff --git a/selenium-webdriver-testng/src/test/java/io/github/bonigarcia/webdriver/testng/ch05/cdp/GeolocationOverrideNGTest.java b/selenium-webdriver-testng/src/test/java/io/github/bonigarcia/webdriver/testng/ch05/cdp/GeolocationOverrideNGTest.java index 6c50d2475..fbc155a14 100644 --- a/selenium-webdriver-testng/src/test/java/io/github/bonigarcia/webdriver/testng/ch05/cdp/GeolocationOverrideNGTest.java +++ b/selenium-webdriver-testng/src/test/java/io/github/bonigarcia/webdriver/testng/ch05/cdp/GeolocationOverrideNGTest.java @@ -24,7 +24,7 @@ import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.devtools.DevTools; -import org.openqa.selenium.devtools.v122.emulation.Emulation; +import org.openqa.selenium.devtools.v125.emulation.Emulation; import org.openqa.selenium.support.ui.ExpectedConditions; import org.openqa.selenium.support.ui.WebDriverWait; import org.testng.annotations.AfterMethod; diff --git a/selenium-webdriver-testng/src/test/java/io/github/bonigarcia/webdriver/testng/ch05/cdp/LoadInsecureNGTest.java b/selenium-webdriver-testng/src/test/java/io/github/bonigarcia/webdriver/testng/ch05/cdp/LoadInsecureNGTest.java index 082c2d1f2..e749aa697 100644 --- a/selenium-webdriver-testng/src/test/java/io/github/bonigarcia/webdriver/testng/ch05/cdp/LoadInsecureNGTest.java +++ b/selenium-webdriver-testng/src/test/java/io/github/bonigarcia/webdriver/testng/ch05/cdp/LoadInsecureNGTest.java @@ -26,7 +26,7 @@ import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.devtools.DevTools; -import org.openqa.selenium.devtools.v122.security.Security; +import org.openqa.selenium.devtools.v125.security.Security; import org.openqa.selenium.support.Color; import org.slf4j.Logger; import org.testng.annotations.AfterMethod; diff --git a/selenium-webdriver-testng/src/test/java/io/github/bonigarcia/webdriver/testng/ch05/cdp/ManageCookiesNGTest.java b/selenium-webdriver-testng/src/test/java/io/github/bonigarcia/webdriver/testng/ch05/cdp/ManageCookiesNGTest.java index a4399bdc4..f2ff0c8e4 100644 --- a/selenium-webdriver-testng/src/test/java/io/github/bonigarcia/webdriver/testng/ch05/cdp/ManageCookiesNGTest.java +++ b/selenium-webdriver-testng/src/test/java/io/github/bonigarcia/webdriver/testng/ch05/cdp/ManageCookiesNGTest.java @@ -30,9 +30,9 @@ import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.devtools.DevTools; -import org.openqa.selenium.devtools.v122.network.Network; -import org.openqa.selenium.devtools.v122.network.model.Cookie; -import org.openqa.selenium.devtools.v122.storage.Storage; +import org.openqa.selenium.devtools.v125.network.Network; +import org.openqa.selenium.devtools.v125.network.model.Cookie; +import org.openqa.selenium.devtools.v125.storage.Storage; import org.slf4j.Logger; import org.testng.annotations.AfterMethod; import org.testng.annotations.BeforeMethod; diff --git a/selenium-webdriver-testng/src/test/java/io/github/bonigarcia/webdriver/testng/ch05/cdp/NetworkMonitoringNGTest.java b/selenium-webdriver-testng/src/test/java/io/github/bonigarcia/webdriver/testng/ch05/cdp/NetworkMonitoringNGTest.java index 597b7e367..3c57927bd 100644 --- a/selenium-webdriver-testng/src/test/java/io/github/bonigarcia/webdriver/testng/ch05/cdp/NetworkMonitoringNGTest.java +++ b/selenium-webdriver-testng/src/test/java/io/github/bonigarcia/webdriver/testng/ch05/cdp/NetworkMonitoringNGTest.java @@ -25,8 +25,8 @@ import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.devtools.DevTools; -import org.openqa.selenium.devtools.v122.network.Network; -import org.openqa.selenium.devtools.v122.network.model.Headers; +import org.openqa.selenium.devtools.v125.network.Network; +import org.openqa.selenium.devtools.v125.network.model.Headers; import org.slf4j.Logger; import org.testng.annotations.AfterMethod; import org.testng.annotations.BeforeMethod; diff --git a/selenium-webdriver-testng/src/test/java/io/github/bonigarcia/webdriver/testng/ch05/cdp/PerformanceMetricsNGTest.java b/selenium-webdriver-testng/src/test/java/io/github/bonigarcia/webdriver/testng/ch05/cdp/PerformanceMetricsNGTest.java index 01a0937dc..b03d8dd81 100644 --- a/selenium-webdriver-testng/src/test/java/io/github/bonigarcia/webdriver/testng/ch05/cdp/PerformanceMetricsNGTest.java +++ b/selenium-webdriver-testng/src/test/java/io/github/bonigarcia/webdriver/testng/ch05/cdp/PerformanceMetricsNGTest.java @@ -27,8 +27,8 @@ import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.devtools.DevTools; -import org.openqa.selenium.devtools.v122.performance.Performance; -import org.openqa.selenium.devtools.v122.performance.model.Metric; +import org.openqa.selenium.devtools.v125.performance.Performance; +import org.openqa.selenium.devtools.v125.performance.model.Metric; import org.slf4j.Logger; import org.testng.annotations.AfterMethod; import org.testng.annotations.BeforeMethod;