Class NodeProperties
- Namespace
- WebDriverBiDi.Script
- Assembly
- WebDriverBiDi.dll
Object containing information about a Node object.
public record NodeProperties : IEquatable<NodeProperties>
- Inheritance
-
NodeProperties
- Implements
- Inherited Members
Constructors
NodeProperties(NodeProperties)
protected NodeProperties(NodeProperties original)
Parameters
originalNodeProperties
Properties
Attributes
Gets a read-only dictionary of the attributes of this node.
[JsonIgnore]
public NodeAttributes? Attributes { get; }
Property Value
ChildNodeCount
Gets the count of the child nodes.
[JsonPropertyName("childNodeCount")]
[JsonRequired]
[JsonInclude]
public ulong ChildNodeCount { get; }
Property Value
Children
Gets a read-only list of the children of the node.
[JsonIgnore]
public IList<NodeRemoteValue>? Children { get; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
LocalName
Gets the local name of the node.
[JsonPropertyName("localName")]
[JsonInclude]
public string? LocalName { get; }
Property Value
Mode
Gets the mode of this node when it is a shadow root; otherwise null.
[JsonPropertyName("mode")]
[JsonInclude]
public ShadowRootMode? Mode { get; }
Property Value
NamespaceUri
Gets the namespace URI of the node.
[JsonPropertyName("namespaceURI")]
[JsonInclude]
public string? NamespaceUri { get; }
Property Value
NodeType
Gets the type of node.
[JsonPropertyName("nodeType")]
[JsonRequired]
[JsonInclude]
public ulong NodeType { get; }
Property Value
NodeValue
Gets the value of the node.
[JsonPropertyName("nodeValue")]
[JsonInclude]
public string? NodeValue { get; }
Property Value
ShadowRoot
Gets the RemoteValue representing the shadow root of this node, if available.
[JsonPropertyName("shadowRoot")]
[JsonInclude]
[JsonConverter(typeof(NestedValueJsonConverter<NodeRemoteValue>))]
public NodeRemoteValue? ShadowRoot { get; }
Property Value
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(NodeProperties?)
public virtual bool Equals(NodeProperties? other)
Parameters
otherNodeProperties
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(NodeProperties?, NodeProperties?)
public static bool operator ==(NodeProperties? left, NodeProperties? right)
Parameters
leftNodePropertiesrightNodeProperties
Returns
operator !=(NodeProperties?, NodeProperties?)
public static bool operator !=(NodeProperties? left, NodeProperties? right)
Parameters
leftNodePropertiesrightNodeProperties