DocumentPage
Namespace: E2E.Engine
public sealed class DocumentPageOne in-memory screen. Builder methods append controls in reading order.
Inheritance: object
Properties
Section titled “Properties”OnScroll
Section titled “OnScroll”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>
public string Path { get; }Value: string
Methods
Section titled “Methods”Button(string, Action?)
Section titled “Button(string, Action?)”public DocumentElement Button(string name, Action? onTap = null)Parameters
| Name | Type | Description |
|---|---|---|
name |
string | |
onTap |
Action |
Returns: DocumentElement
Checkbox(string, bool)
Section titled “Checkbox(string, bool)”public DocumentElement Checkbox(string name, bool isChecked = false)Parameters
| Name | Type | Description |
|---|---|---|
name |
string | |
isChecked |
bool |
Returns: DocumentElement
Heading(string, int)
Section titled “Heading(string, int)”public DocumentElement Heading(string name, int level = 1)Parameters
| Name | Type | Description |
|---|---|---|
name |
string | |
level |
int |
Returns: DocumentElement
Link(string, string)
Section titled “Link(string, string)”public DocumentElement Link(string name, string route)Parameters
| Name | Type | Description |
|---|---|---|
name |
string | |
route |
string |
Returns: DocumentElement
Paragraph(string)
Section titled “Paragraph(string)”public DocumentElement Paragraph(string text)Parameters
| Name | Type | Description |
|---|---|---|
text |
string |
Returns: DocumentElement
Status(string, bool)
Section titled “Status(string, bool)”public DocumentElement Status(string name, bool hidden = false)Parameters
| Name | Type | Description |
|---|---|---|
name |
string | |
hidden |
bool |
Returns: DocumentElement
TestId(string, string?, string?)
Section titled “TestId(string, string?, string?)”public DocumentElement TestId(string testId, string? role = null, string? name = null)Parameters
| Name | Type | Description |
|---|---|---|
testId |
string | |
role |
string | |
name |
string |
Returns: DocumentElement
Textbox(string, string?, bool)
Section titled “Textbox(string, string?, bool)”public DocumentElement Textbox(string name, string? value = null, bool secure = false)Parameters
| Name | Type | Description |
|---|---|---|
name |
string | |
value |
string | |
secure |
bool |
Returns: DocumentElement