Table of Contents

Class ServiceWorkerRouterCondition

Namespace
OpenQA.Selenium.DevTools.V154.ServiceWorker
Assembly
Selenium.WebDriver.dll

Mostly corresponds to RouterCondition in ServiceWorker spec (https://www.w3.org/TR/service-workers/#dictdef-routercondition) while this currently lacks support for the nested conditions ("or" and "not"). TODO(crbug.com/540469610): Support recursive conditions.

public sealed class ServiceWorkerRouterCondition
Inheritance
ServiceWorkerRouterCondition
Inherited Members

Properties

RequestDestination

requestDestination

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

Property Value

string

RequestMethod

requestMethod

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

Property Value

string

RequestMode

requestMode

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

Property Value

string

RunningStatus

runningStatus

[JsonPropertyName("runningStatus")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public ServiceWorkerVersionRunningStatus? RunningStatus { get; set; }

Property Value

ServiceWorkerVersionRunningStatus?

UrlPattern

Plain text, or JSON serialization of URLPatternInit or URLPattern

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

Property Value

string