Class RequestPattern
java.lang.Object
org.openqa.selenium.devtools.v85.network.model.RequestPattern
Request pattern for interception.
-
Constructor Summary
ConstructorsConstructorDescriptionRequestPattern
(Optional<String> urlPattern, Optional<ResourceType> resourceType, Optional<InterceptionStage> interceptionStage) -
Method Summary
Modifier and TypeMethodDescriptionStage at wich to begin intercepting requests.If set, only requests for matching resource types will be intercepted.Wildcards ('*' -> zero or more, '?' -> exactly one) are allowed.
-
Constructor Details
-
RequestPattern
public RequestPattern(Optional<String> urlPattern, Optional<ResourceType> resourceType, Optional<InterceptionStage> interceptionStage)
-
-
Method Details
-
getUrlPattern
Wildcards ('*' -> zero or more, '?' -> exactly one) are allowed. Escape character is backslash. Omitting is equivalent to "*". -
getResourceType
If set, only requests for matching resource types will be intercepted. -
getInterceptionStage
Stage at wich to begin intercepting requests. Default is Request.
-