Skip to content

Commit af3de2b

Browse files
Updated CDP network request example
1 parent a46cd66 commit af3de2b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,8 @@ public class ChromeDevToolsTests extends TesterraTest implements
325325
Request request = requestConsumer.getRequest();
326326
String currentUrl = request.getUrl();
327327
if (currentUrl.contains("ws_api.php?ip=")) {
328-
String updatedUrl = currentUrl.substring(0, currentUrl.indexOf("?")) + "?ip=" + location1;
328+
String updatedUrl = currentUrl.substring(0, currentUrl.indexOf("?"))
329+
+ "?ip=" + location1;
329330
rawDevTools.send(
330331
Fetch.continueRequest(
331332
requestConsumer.getRequestId(),

0 commit comments

Comments
 (0)