Class Network<AUTHREQUIRED,REQUESTPAUSED>
java.lang.Object
org.openqa.selenium.devtools.idealized.Network<AUTHREQUIRED,REQUESTPAUSED>
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAuthHandler
(Predicate<URI> whenThisMatches, Supplier<org.openqa.selenium.Credentials> useTheseCredentials) protected abstract Event<AUTHREQUIRED>
cancelAuth
(AUTHREQUIRED authrequired) continueRequest
(REQUESTPAUSED pausedReq, org.openqa.selenium.remote.http.HttpRequest req) continueWithAuth
(AUTHREQUIRED authRequired, org.openqa.selenium.UsernameAndPassword credentials) continueWithoutModification
(REQUESTPAUSED pausedReq) protected org.openqa.selenium.remote.http.HttpMethod
convertFromCdpHttpMethod
(String method) protected org.openqa.selenium.remote.http.HttpRequest
createHttpRequest
(String cdpMethod, String url, Map<String, Object> headers, Optional<String> postData) protected org.openqa.selenium.remote.http.HttpResponse
createHttpResponse
(Optional<Integer> statusCode, String body, Boolean bodyIsBase64Encoded, List<Map.Entry<String, String>> headers) protected abstract org.openqa.selenium.internal.Either<org.openqa.selenium.remote.http.HttpRequest,
org.openqa.selenium.remote.http.HttpResponse> createSeMessages
(REQUESTPAUSED pausedReq) void
disable()
fulfillRequest
(REQUESTPAUSED pausedReq, org.openqa.selenium.remote.http.HttpResponse res) protected Optional<org.openqa.selenium.Credentials>
getAuthCredentials
(URI uri) protected abstract String
getRequestId
(REQUESTPAUSED pausedReq) protected abstract String
getUriFrom
(AUTHREQUIRED authRequired) protected abstract boolean
hasErrorResponse
(REQUESTPAUSED pausedReq) void
interceptTrafficWith
(org.openqa.selenium.remote.http.Filter filter) void
protected abstract Event<REQUESTPAUSED>
void
void
setUserAgent
(String userAgent) void
setUserAgent
(Network.UserAgent userAgent) setUserAgentOverride
(Network.UserAgent userAgent)
-
Field Details
-
devTools
-
-
Constructor Details
-
Network
-
-
Method Details
-
disable
public void disable() -
setUserAgent
-
setUserAgent
-
addAuthHandler
-
resetNetworkFilter
public void resetNetworkFilter() -
interceptTrafficWith
public void interceptTrafficWith(org.openqa.selenium.remote.http.Filter filter) -
prepareToInterceptTraffic
public void prepareToInterceptTraffic() -
getAuthCredentials
-
convertFromCdpHttpMethod
-
createHttpResponse
-
createHttpRequest
-
setUserAgentOverride
-
enableNetworkCaching
-
disableNetworkCaching
-
enableFetchForAllPatterns
-
disableFetch
-
authRequiredEvent
-
getUriFrom
-
continueWithAuth
protected abstract Command<Void> continueWithAuth(AUTHREQUIRED authRequired, org.openqa.selenium.UsernameAndPassword credentials) -
cancelAuth
-
requestPausedEvent
-
getRequestId
-
createSeMessages
protected abstract org.openqa.selenium.internal.Either<org.openqa.selenium.remote.http.HttpRequest,org.openqa.selenium.remote.http.HttpResponse> createSeMessages(REQUESTPAUSED pausedReq) -
hasErrorResponse
-
continueWithoutModification
-
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)
-