BrowserKeyboard
Namespace: E2E
public sealed class BrowserKeyboardKeyboard input for whatever holds focus in the active tab. A call the page does not
answer within the action timeout fails with ACTION_MAY_HAVE_COMMITTED: the input may have reached the page.
Inheritance: object
Methods
Section titled “Methods”DownAsync(string, CancellationToken)
Section titled “DownAsync(string, CancellationToken)”public Task DownAsync(string key, CancellationToken cancellationToken = default)Holds one key until CancellationToken); a repeated down sends a repeat event.
Parameters
| Name | Type | Description |
|---|---|---|
key |
string | |
cancellationToken |
CancellationToken |
Returns: Task
PressAsync(string, CancellationToken)
Section titled “PressAsync(string, CancellationToken)”public Task PressAsync(string key, CancellationToken cancellationToken = default)Sends one key, such as Enter or Control+A.
Parameters
| Name | Type | Description |
|---|---|---|
key |
string | |
cancellationToken |
CancellationToken |
Returns: Task
TypeAsync(string, CancellationToken)
Section titled “TypeAsync(string, CancellationToken)”public Task TypeAsync(string text, CancellationToken cancellationToken = default)Types plain text.
Parameters
| Name | Type | Description |
|---|---|---|
text |
string | |
cancellationToken |
CancellationToken |
Returns: Task
UpAsync(string, CancellationToken)
Section titled “UpAsync(string, CancellationToken)”public Task UpAsync(string key, CancellationToken cancellationToken = default)Releases a held key.
Parameters
| Name | Type | Description |
|---|---|---|
key |
string | |
cancellationToken |
CancellationToken |
Returns: Task