Table of Contents

Class SetAttributesAsTextCommandSettings

Namespace
OpenQA.Selenium.DevTools.V147.DOM
Assembly
Selenium.WebDriver.dll

Sets attributes on element with given id. This method is useful when user edits some existing attribute value and types in several attribute name/value pairs.

public sealed class SetAttributesAsTextCommandSettings : ICommand
Inheritance
SetAttributesAsTextCommandSettings
Implements
Inherited Members

Properties

CommandName

Gets the name of the command.

[JsonIgnore]
public string CommandName { get; }

Property Value

string

Name

Attribute name to replace with new attributes derived from text in case text parsed successfully.

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

Property Value

string

NodeId

Id of the element to set attributes for.

[JsonPropertyName("nodeId")]
public long NodeId { get; set; }

Property Value

long

Text

Text with a number of attributes. Will parse this text using HTML parser.

[JsonPropertyName("text")]
public string Text { get; set; }

Property Value

string