Skip to content

DocumentPage

Namespace: E2E.Engine

public sealed class DocumentPage

One in-memory screen. Builder methods append controls in reading order.

Inheritance: object

View source

public Action<ScrollDirection>? OnScroll { get; set; }

Runs when the viewport scrolls, for a page that loads more as it is scrolled. The page has no viewport of its own.

Value: Action<ScrollDirection>

View source

public string Path { get; }

Value: string

View source

public DocumentElement Button(string name, Action? onTap = null)

Parameters

Name Type Description
name string
onTap Action

Returns: DocumentElement

View source

public DocumentElement Checkbox(string name, bool isChecked = false)

Parameters

Name Type Description
name string
isChecked bool

Returns: DocumentElement

View source

public DocumentElement Heading(string name, int level = 1)

Parameters

Name Type Description
name string
level int

Returns: DocumentElement

View source

public DocumentElement Link(string name, string route)

Parameters

Name Type Description
name string
route string

Returns: DocumentElement

View source

public DocumentElement Paragraph(string text)

Parameters

Name Type Description
text string

Returns: DocumentElement

View source

public DocumentElement Status(string name, bool hidden = false)

Parameters

Name Type Description
name string
hidden bool

Returns: DocumentElement

View source

public DocumentElement TestId(string testId, string? role = null, string? name = null)

Parameters

Name Type Description
testId string
role string
name string

Returns: DocumentElement

View source

public DocumentElement Textbox(string name, string? value = null, bool secure = false)

Parameters

Name Type Description
name string
value string
secure bool

Returns: DocumentElement

View source