java.lang.Object
org.openqa.selenium.devtools.v145.network.model.BlockPattern

@Beta public class BlockPattern extends Object
  • Constructor Details

    • BlockPattern

      public BlockPattern(String urlPattern, Boolean block)
  • Method Details

    • getUrlPattern

      public String getUrlPattern()
      URL pattern to match. Patterns use the URLPattern constructor string syntax (https://urlpattern.spec.whatwg.org/) and must be absolute. Example: `*://*:*/*.css`.
    • getBlock

      public Boolean getBlock()
      Whether or not to block the pattern. If false, a matching request will not be blocked even if it matches a later `BlockPattern`.