Table of Contents

Class SetBlockedURLsCommandSettings

Namespace
OpenQA.Selenium.DevTools.V148.Network
Assembly
Selenium.WebDriver.dll

Blocks URLs from loading.

public sealed class SetBlockedURLsCommandSettings : ICommand
Inheritance
SetBlockedURLsCommandSettings
Implements
Inherited Members

Properties

CommandName

Gets the name of the command.

[JsonIgnore]
public string CommandName { get; }

Property Value

string

UrlPatterns

Patterns to match in the order in which they are given. These patterns also take precedence over any wildcard patterns defined in urls.

[JsonPropertyName("urlPatterns")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public BlockPattern[]? UrlPatterns { get; set; }

Property Value

BlockPattern[]

Urls

URL patterns to block. Wildcards ('*') are allowed.

[JsonPropertyName("urls")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string[]? Urls { get; set; }

Property Value

string[]