Skip to content

BrowserKeyboard

Namespace: E2E

public sealed class BrowserKeyboard

Keyboard 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

View source

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

View source

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

View source

public Task TypeAsync(string text, CancellationToken cancellationToken = default)

Types plain text.

Parameters

Name Type Description
text string
cancellationToken CancellationToken

Returns: Task

View source

public Task UpAsync(string key, CancellationToken cancellationToken = default)

Releases a held key.

Parameters

Name Type Description
key string
cancellationToken CancellationToken

Returns: Task

View source