Skip to content

Commit

Permalink
[cdp] Intercept every network request
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Sep 9, 2019
1 parent 2de1291 commit 7f13e36
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.openqa.selenium.support.devtools;

import com.google.common.collect.ImmutableList;
import com.google.common.reflect.ClassPath;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.devtools.DevTools;
import org.openqa.selenium.devtools.HasDevTools;
Expand Down Expand Up @@ -67,9 +68,7 @@ public NetworkInterceptor(WebDriver driver, Route route) {
devTools.addListener(Fetch.requestPaused(), this::handleRequest);

devTools.send(Fetch.enable(
Optional.of(
ImmutableList.of(
new RequestPattern(Optional.empty(), Optional.of(ResourceType.Document), Optional.of(REQUEST)))),
Optional.empty(),
Optional.of(false)));
}

Expand Down

0 comments on commit 7f13e36

Please sign in to comment.