DocumentElement
Namespace: E2E.Engine
public sealed class DocumentElementA mutable control on a DocumentPage.
Inheritance: object
Properties
Section titled “Properties”Attributes
Section titled “Attributes”public Dictionary<string, string> Attributes { get; }Attributes getAttribute and toHaveAttribute read, such as href or aria-label.
Value: Dictionary<string, string>
Checked
Section titled “Checked”public bool Checked { get; set; }Value: bool
Children
Section titled “Children”public List<DocumentElement> Children { get; }Value: List<DocumentElement>
Disabled
Section titled “Disabled”public bool Disabled { get; set; }Value: bool
Expanded
Section titled “Expanded”public bool Expanded { get; set; }Value: bool
Focused
Section titled “Focused”public bool Focused { get; set; }Value: bool
Hidden
Section titled “Hidden”public bool Hidden { get; set; }Value: bool
InputPurpose
Section titled “InputPurpose”public string? InputPurpose { get; init; }Value: string
public int? Level { get; init; }Value: int?
public string? Name { get; set; }Value: string
NavigateTo
Section titled “NavigateTo”public string? NavigateTo { get; init; }Value: string
OnFill
Section titled “OnFill”public Action<string>? OnFill { get; init; }Value: Action<string>
OnScroll
Section titled “OnScroll”public Action<ScrollDirection>? OnScroll { get; set; }Runs when this element is scrolled with LocatorAction.Swipe.
Value: Action<ScrollDirection>
public Action? OnTap { get; init; }Value: Action
Placeholder
Section titled “Placeholder”public string? Placeholder { get; init; }Value: string
Pressed
Section titled “Pressed”public bool Pressed { get; set; }Value: bool
public BoundingBox? Rect { get; set; }The box boundingBox reports. Null when the page does not lay it out.
Value: BoundingBox
public string? Role { get; init; }Value: string
Secure
Section titled “Secure”public bool Secure { get; set; }Value: bool
Selected
Section titled “Selected”public bool Selected { get; set; }Value: bool
TestId
Section titled “TestId”public string? TestId { get; init; }Value: string
public string? Text { get; set; }Value: string
public string? Value { get; set; }Value: string