Skip to content

Commit c2c9d9c

Browse files
Updated docs
1 parent 46f0128 commit c2c9d9c

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

docs/src/docs/selenium4/selenium4-cdp.adoc

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Selenium 4 supports the access to the Chrome developer tools. Testerra provides a simple API to interact with CDP.
44

5-
You can find some more examples at https://www.selenium.dev/documentation/webdriver/bidirectional/chrome_devtools/.
5+
You can find some more examples at https://www.selenium.dev/documentation/webdriver/bidi/cdp/.
66

77
[NOTE]
88
====
@@ -181,7 +181,7 @@ public class ChromeDevToolsTests extends TesterraTest implements
181181
.'Broken' page resources
182182
[source, java]
183183
----
184-
import org.openqa.selenium.devtools.v137.log.model.LogEntry;
184+
import org.openqa.selenium.devtools.v143.log.model.LogEntry;
185185
...
186186
187187
public class ChromeDevToolsTests extends TesterraTest implements
@@ -222,9 +222,9 @@ public class ChromeDevToolsTests extends TesterraTest implements
222222

223223
[source, java]
224224
----
225-
import org.openqa.selenium.devtools.v137.network.Network;
226-
import org.openqa.selenium.devtools.v137.network.model.RequestWillBeSent;
227-
import org.openqa.selenium.devtools.v137.network.model.ResponseReceived;
225+
import org.openqa.selenium.devtools.v143.network.Network;
226+
import org.openqa.selenium.devtools.v143.network.model.RequestWillBeSent;
227+
import org.openqa.selenium.devtools.v143.network.model.ResponseReceived;
228228
...
229229
230230
public class ChromeDevToolsTests extends TesterraTest implements
@@ -236,7 +236,13 @@ public class ChromeDevToolsTests extends TesterraTest implements
236236
public void test_CDP_NetworkListener() {
237237
WebDriver webDriver = WEB_DRIVER_MANAGER.getWebDriver();
238238
DevTools devTools = CHROME_DEV_TOOLS.getRawDevTools(webDriver);
239-
devTools.send(Network.enable(Optional.empty(), Optional.empty(), Optional.empty()));
239+
devTools.send(Network.enable(
240+
Optional.empty(),
241+
Optional.empty(),
242+
Optional.empty(),
243+
Optional.empty(),
244+
Optional.empty())
245+
);
240246
241247
// Create lists for requests and responses
242248
List<ResponseReceived> responseList = new ArrayList<>();

0 commit comments

Comments
 (0)