Class Network<AUTHREQUIRED,REQUESTPAUSED>

java.lang.Object
org.openqa.selenium.devtools.idealized.Network<AUTHREQUIRED,REQUESTPAUSED>

public abstract class Network<AUTHREQUIRED,REQUESTPAUSED> extends Object
  • Field Details

    • devTools

      protected final DevTools devTools
  • Constructor Details

    • Network

      public Network(DevTools devtools)
  • Method Details

    • disable

      public void disable()
    • setUserAgent

      public void setUserAgent(String userAgent)
    • setUserAgent

      public void setUserAgent(Network.UserAgent userAgent)
    • addAuthHandler

      public void addAuthHandler(Predicate<URI> whenThisMatches, Supplier<org.openqa.selenium.Credentials> useTheseCredentials)
    • resetNetworkFilter

      public void resetNetworkFilter()
    • interceptTrafficWith

      public void interceptTrafficWith(org.openqa.selenium.remote.http.Filter filter)
    • prepareToInterceptTraffic

      public void prepareToInterceptTraffic()
    • getAuthCredentials

      protected Optional<org.openqa.selenium.Credentials> getAuthCredentials(URI uri)
    • convertFromCdpHttpMethod

      protected org.openqa.selenium.remote.http.HttpMethod convertFromCdpHttpMethod(String method)
    • createHttpResponse

      protected org.openqa.selenium.remote.http.HttpResponse createHttpResponse(Optional<Integer> statusCode, String body, Boolean bodyIsBase64Encoded, List<Map.Entry<String,String>> headers)
    • createHttpRequest

      protected org.openqa.selenium.remote.http.HttpRequest createHttpRequest(String cdpMethod, String url, Map<String,Object> headers, Optional<String> postData)
    • setUserAgentOverride

      protected abstract Command<Void> setUserAgentOverride(Network.UserAgent userAgent)
    • enableNetworkCaching

      protected abstract Command<Void> enableNetworkCaching()
    • disableNetworkCaching

      protected abstract Command<Void> disableNetworkCaching()
    • enableFetchForAllPatterns

      protected abstract Command<Void> enableFetchForAllPatterns()
    • disableFetch

      protected abstract Command<Void> disableFetch()
    • authRequiredEvent

      protected abstract Event<AUTHREQUIRED> authRequiredEvent()
    • getUriFrom

      protected abstract String getUriFrom(AUTHREQUIRED authRequired)
    • continueWithAuth

      protected abstract Command<Void> continueWithAuth(AUTHREQUIRED authRequired, org.openqa.selenium.UsernameAndPassword credentials)
    • cancelAuth

      protected abstract Command<Void> cancelAuth(AUTHREQUIRED authrequired)
    • requestPausedEvent

      protected abstract Event<REQUESTPAUSED> requestPausedEvent()
    • getRequestId

      protected abstract String getRequestId(REQUESTPAUSED pausedReq)
    • createSeMessages

      protected abstract org.openqa.selenium.internal.Either<org.openqa.selenium.remote.http.HttpRequest,org.openqa.selenium.remote.http.HttpResponse> createSeMessages(REQUESTPAUSED pausedReq)
    • hasErrorResponse

      protected abstract boolean hasErrorResponse(REQUESTPAUSED pausedReq)
    • continueWithoutModification

      protected abstract Command<Void> continueWithoutModification(REQUESTPAUSED pausedReq)
    • continueRequest

      protected abstract Command<Void> continueRequest(REQUESTPAUSED pausedReq, org.openqa.selenium.remote.http.HttpRequest req)
    • fulfillRequest

      protected abstract Command<Void> fulfillRequest(REQUESTPAUSED pausedReq, org.openqa.selenium.remote.http.HttpResponse res)