Table of Contents

Class AddRuleCommandSettings

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

Inserts a new rule with the given ruleText in a stylesheet with given styleSheetId, at the position specified by location.

public sealed class AddRuleCommandSettings : ICommand
Inheritance
AddRuleCommandSettings
Implements
Inherited Members

Properties

CommandName

Gets the name of the command.

[JsonIgnore]
public string CommandName { get; }

Property Value

string

Location

Text position of a new rule in the target style sheet.

[JsonPropertyName("location")]
public SourceRange Location { get; set; }

Property Value

SourceRange

NodeForPropertySyntaxValidation

NodeId for the DOM node in whose context custom property declarations for registered properties should be validated. If omitted, declarations in the new rule text can only be validated statically, which may produce incorrect results if the declaration contains a var() for example.

[JsonPropertyName("nodeForPropertySyntaxValidation")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public long? NodeForPropertySyntaxValidation { get; set; }

Property Value

long?

RuleText

The text of a new rule.

[JsonPropertyName("ruleText")]
public string RuleText { get; set; }

Property Value

string

StyleSheetId

The css style sheet identifier where a new rule should be inserted.

[JsonPropertyName("styleSheetId")]
public string StyleSheetId { get; set; }

Property Value

string