Skip to content

Commit

Permalink
Updated CDP network request example
Browse files Browse the repository at this point in the history
  • Loading branch information
martingrossmann committed Dec 13, 2024
1 parent a46cd66 commit af3de2b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/src/docs/selenium4/selenium4-cdp.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,8 @@ public class ChromeDevToolsTests extends TesterraTest implements
Request request = requestConsumer.getRequest();
String currentUrl = request.getUrl();
if (currentUrl.contains("ws_api.php?ip=")) {
String updatedUrl = currentUrl.substring(0, currentUrl.indexOf("?")) + "?ip=" + location1;
String updatedUrl = currentUrl.substring(0, currentUrl.indexOf("?"))
+ "?ip=" + location1;
rawDevTools.send(
Fetch.continueRequest(
requestConsumer.getRequestId(),
Expand Down

0 comments on commit af3de2b

Please sign in to comment.