Skip to content

EngineNode

Namespace: E2E.Engine

public sealed record EngineNode : IEquatable<EngineNode>

Upstream’s SemanticNode (engine/contract.ts): one node of an engine’s tree. Named EngineNode because the port’s IEngine already has a SemanticNode, which carries the port’s own observation fields.

Inheritance: object

Implements: IEquatable<EngineNode>

View source

EngineNode(NodeRef, string?, string?, IReadOnlyList<EngineNode>?, EngineNodeStates?, string?, string?, string?, string?, string?, int?, IReadOnlyDictionary<string, string>?, BoundingBox?, Point?, string?, IReadOnlyList<string>?)

Section titled “EngineNode(NodeRef, string?, string?, IReadOnlyList<EngineNode>?, EngineNodeStates?, string?, string?, string?, string?, string?, int?, IReadOnlyDictionary<string, string>?, BoundingBox?, Point?, string?, IReadOnlyList<string>?)”
public EngineNode(NodeRef Ref, string? Role = null, string? Name = null, IReadOnlyList<EngineNode>? Children = null, EngineNodeStates? States = null, string? Text = null, string? Value = null, string? Selection = null, string? TestId = null, string? InputPurpose = null, int? Level = null, IReadOnlyDictionary<string, string>? Attributes = null, BoundingBox? Rect = null, Point? Origin = null, string? Selector = null, IReadOnlyList<string>? FramePath = null)

Upstream’s SemanticNode (engine/contract.ts): one node of an engine’s tree. Named EngineNode because the port’s IEngine already has a SemanticNode, which carries the port’s own observation fields.

Parameters

Name Type Description
Ref NodeRef Node reference, valid against the observation it came from.
Role string Semantic role.
Name string Accessible name, cut at Name.
Children IReadOnlyList<EngineNode> Child nodes.
States EngineNodeStates Boolean states the platform reports.
Text string Visible text, cut at Text.
Value string Current input value; never reported for a secure field.
Selection string Text selected inside the node; absent when the selection is collapsed, and never reported for a secure field.
TestId string The node’s test id, when the platform gives it one. The testId query resolves against this field.
InputPurpose string What a field takes: username, password, one-time-code, generic-secret, or none.
Level int? Heading level of a heading node; absent elsewhere.
Attributes IReadOnlyDictionary<string, string> Platform attributes, what getAttribute reads. The placeholder query reads placeholder from here.
Rect BoundingBox The node’s box in the top-level viewport’s CSS pixels.
Origin Point? The point an offset into the node is measured from, in Rect’s space, when it is not its top-left corner.
Selector string Platform selector that addresses this node within its own document, when the platform has one.
FramePath IReadOnlyList<string> Enclosing nested-document chain as selectors of each boundary node, outermost first.

public IReadOnlyDictionary<string, string>? Attributes { get; init; }

Platform attributes, what getAttribute reads. The placeholder query reads placeholder from here.

Value: IReadOnlyDictionary<string, string>

public IReadOnlyList<EngineNode>? Children { get; init; }

Child nodes.

Value: IReadOnlyList<EngineNode>

public IReadOnlyList<string>? FramePath { get; init; }

Enclosing nested-document chain as selectors of each boundary node, outermost first.

Value: IReadOnlyList<string>

public string? InputPurpose { get; init; }

What a field takes: username, password, one-time-code, generic-secret, or none.

Value: string

public int? Level { get; init; }

Heading level of a heading node; absent elsewhere.

Value: int?

public string? Name { get; init; }

Accessible name, cut at Name.

Value: string

public Point? Origin { get; init; }

The point an offset into the node is measured from, in Rect’s space, when it is not its top-left corner.

Value: Point?

public BoundingBox? Rect { get; init; }

The node’s box in the top-level viewport’s CSS pixels.

Value: BoundingBox

public NodeRef Ref { get; init; }

Node reference, valid against the observation it came from.

Value: NodeRef

public string? Role { get; init; }

Semantic role.

Value: string

public string? Selection { get; init; }

Text selected inside the node; absent when the selection is collapsed, and never reported for a secure field.

Value: string

public string? Selector { get; init; }

Platform selector that addresses this node within its own document, when the platform has one.

Value: string

public EngineNodeStates? States { get; init; }

Boolean states the platform reports.

Value: EngineNodeStates

public string? TestId { get; init; }

The node’s test id, when the platform gives it one. The testId query resolves against this field.

Value: string

public string? Text { get; init; }

Visible text, cut at Text.

Value: string

public string? Value { get; init; }

Current input value; never reported for a secure field.

Value: string