Table of Contents

Class BlockPattern

Namespace
Selenium.WebDriver.BiDi.Cdp.Network
Assembly
Selenium.WebDriver.BiDi.Cdp.dll
public sealed record BlockPattern : IEquatable<BlockPattern>
Inheritance
BlockPattern
Implements
Inherited Members

Constructors

BlockPattern(string, bool)

public BlockPattern(string UrlPattern, bool Block)

Parameters

UrlPattern string

URL pattern to match. Patterns use the URLPattern constructor string syntax (https://urlpattern.spec.whatwg.org/) and must be absolute. Example: ://:/.css.

Block bool

Whether or not to block the pattern. If false, a matching request will not be blocked even if it matches a later BlockPattern.

Properties

Block

Whether or not to block the pattern. If false, a matching request will not be blocked even if it matches a later BlockPattern.

public bool Block { get; init; }

Property Value

bool

UrlPattern

URL pattern to match. Patterns use the URLPattern constructor string syntax (https://urlpattern.spec.whatwg.org/) and must be absolute. Example: ://:/.css.

public string UrlPattern { get; init; }

Property Value

string