Class RequestPattern

java.lang.Object
org.openqa.selenium.devtools.v85.network.model.RequestPattern

@Beta public class RequestPattern extends Object
Request pattern for interception.
  • Constructor Details

  • Method Details

    • getUrlPattern

      public Optional<String> getUrlPattern()
      Wildcards ('*' -> zero or more, '?' -> exactly one) are allowed. Escape character is backslash. Omitting is equivalent to "*".
    • getResourceType

      public Optional<ResourceType> getResourceType()
      If set, only requests for matching resource types will be intercepted.
    • getInterceptionStage

      public Optional<InterceptionStage> getInterceptionStage()
      Stage at wich to begin intercepting requests. Default is Request.