SerializedAXNode
Namespace: PuppeteerSharp.PageAccessibility
public class SerializedAXNode : IEquatable<SerializedAXNode>AXNode.
Inheritance: object
Implements: IEquatable<SerializedAXNode>
Constructors
Section titled “Constructors”SerializedAXNode()
Section titled “SerializedAXNode()”public SerializedAXNode()Initializes a new instance of the SerializedAXNode class.
Properties
Section titled “Properties”Atomic
Section titled “Atomic”public bool Atomic { get; set; }Whether the live region is <a href=“https://www.w3.org/TR/wai-aria/#aria-atomic">atomic</a>.
Value: bool
AutoComplete
Section titled “AutoComplete”public string AutoComplete { get; set; }What kind of autocomplete is supported by a control.
Value: string
public bool Busy { get; set; }Whether the node is <a href=“https://www.w3.org/TR/wai-aria/#aria-busy">busy</a>.
Value: bool
Checked
Section titled “Checked”public CheckedState Checked { get; set; }Whether the checkbox is checked, or “mixed”.
Value: CheckedState
Children
Section titled “Children”public SerializedAXNode[] Children { get; set; }Child nodes of this node, if any.
Value: SerializedAXNode\[\]
Description
Section titled “Description”public string Description { get; set; }An additional human readable description of the node.
Value: string
Details
Section titled “Details”public string Details { get; set; }The <a href=“https://www.w3.org/TR/wai-aria/#aria-details">details</a> for the node.
Value: string
Disabled
Section titled “Disabled”public bool Disabled { get; set; }Whether the node is disabled.
Value: bool
Errormessage
Section titled “Errormessage”public string Errormessage { get; set; }The <a href=“https://www.w3.org/TR/wai-aria/#aria-errormessage">error message</a> for the node.
Value: string
Expanded
Section titled “Expanded”public bool Expanded { get; set; }Whether the node is expanded or collapsed.
Value: bool
Focused
Section titled “Focused”public bool Focused { get; set; }Whether the node is focused.
Value: bool
HasPopup
Section titled “HasPopup”public string HasPopup { get; set; }What kind of popup is currently being shown for a node.
Value: string
Invalid
Section titled “Invalid”public string Invalid { get; set; }Whether and in what way this node’s value is invalid.
Value: string
KeyShortcuts
Section titled “KeyShortcuts”public string KeyShortcuts { get; set; }Keyboard shortcuts associated with this node.
Value: string
public int Level { get; set; }The level of a heading.
Value: int
public string Live { get; set; }The <a href=“https://www.w3.org/TR/wai-aria/#aria-live">live</a> status of the node.
Value: string
LoaderId
Section titled “LoaderId”public string LoaderId { get; set; }CDP-specific documentId. LoaderId is an experimental mechanism to establish unique IDs across navigations.
Value: string
public bool Modal { get; set; }Whether the node is <a href=“https://en.wikipedia.org/wiki/Modal_window">modal</a>.
Value: bool
Multiline
Section titled “Multiline”public bool Multiline { get; set; }Whether the node text input supports multiline.
Value: bool
Multiselectable
Section titled “Multiselectable”public bool Multiselectable { get; set; }Whether more than one child can be selected.
Value: bool
public string Name { get; set; }A human readable name for the node.
Value: string
Orientation
Section titled “Orientation”public string Orientation { get; set; }Whether the node is oriented horizontally or vertically.
Value: string
Pressed
Section titled “Pressed”public CheckedState Pressed { get; set; }Whether the toggle button is checked, or “mixed”.
Value: CheckedState
Readonly
Section titled “Readonly”public bool Readonly { get; set; }Whether the node is read only.
Value: bool
Relevant
Section titled “Relevant”public string Relevant { get; set; }The <a href=“https://www.w3.org/TR/wai-aria/#aria-relevant">relevant</a> changes for the live region.
Value: string
Required
Section titled “Required”public bool Required { get; set; }Whether the node is required.
Value: bool
public string Role { get; set; }The <see fref=“https://www.w3.org/TR/wai-aria/#usage_intro">role</see>.
Value: string
RoleDescription
Section titled “RoleDescription”public string RoleDescription { get; set; }A human readable alternative to the role.
Value: string
Selected
Section titled “Selected”public bool Selected { get; set; }Whether the node is selected in its parent node.
Value: bool
public string Url { get; set; }URL for link elements.
Value: string
public string Value { get; set; }The current value of the node.
Value: string
ValueMax
Section titled “ValueMax”public int ValueMax { get; set; }The maximum value in a node.
Value: int
ValueMin
Section titled “ValueMin”public int ValueMin { get; set; }The minimum value in a node.
Value: int
ValueText
Section titled “ValueText”public string ValueText { get; set; }A description of the current value.
Value: string
Methods
Section titled “Methods”ElementHandleAsync()
Section titled “ElementHandleAsync()”public Task<IElementHandle> ElementHandleAsync()Gets the element handle for this node.
For text nodes, returns the parent element’s handle instead of the text node’s.
Returns null if the frame has navigated to a new document since the snapshot.
Returns: Task<IElementHandle> — An IElementHandle for this node, or null if no handle is available.
Equals(SerializedAXNode)
Section titled “Equals(SerializedAXNode)”[SuppressMessage("Design", "CA1062:Validate arguments of public methods", Justification = "Exceptions should not be raised in this type of method.")]public bool Equals(SerializedAXNode other)Indicates whether the current object is equal to another object of the same type.
Parameters
| Name | Type | Description |
|---|---|---|
other |
SerializedAXNode | An object to compare with this object. |
Returns: bool — <a href=“https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a> if the current object is equal to the <code class=“paramref”>other</code> parameter; otherwise, <a href=“https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>.
Equals(object)
Section titled “Equals(object)”public override bool Equals(object obj)Determines whether the specified object is equal to the current object.
Parameters
| Name | Type | Description |
|---|---|---|
obj |
object | The object to compare with the current object. |
Returns: bool — <a href=“https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a> if the specified object is equal to the current object; otherwise, <a href=“https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>.
GetHashCode()
Section titled “GetHashCode()”public override int GetHashCode()Serves as the default hash function.
Returns: int — A hash code for the current object.
Made with love by Dario Kondratiuk