BrowserMouse
Namespace: E2E
public sealed class BrowserMousePointer input for the active tab, in CSS pixels. 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(CancellationToken)
Section titled “DownAsync(CancellationToken)”public Task DownAsync(CancellationToken cancellationToken = default)Presses the primary button.
Parameters
| Name | Type | Description |
|---|---|---|
cancellationToken |
CancellationToken |
Returns: Task
MoveAsync(float, float, CancellationToken)
Section titled “MoveAsync(float, float, CancellationToken)”public Task MoveAsync(float x, float y, CancellationToken cancellationToken = default)Parameters
| Name | Type | Description |
|---|---|---|
x |
float | |
y |
float | |
cancellationToken |
CancellationToken |
Returns: Task
UpAsync(CancellationToken)
Section titled “UpAsync(CancellationToken)”public Task UpAsync(CancellationToken cancellationToken = default)Releases the primary button.
Parameters
| Name | Type | Description |
|---|---|---|
cancellationToken |
CancellationToken |
Returns: Task
WheelAsync(float, float, CancellationToken)
Section titled “WheelAsync(float, float, CancellationToken)”public Task WheelAsync(float deltaX, float deltaY, CancellationToken cancellationToken = default)Parameters
| Name | Type | Description |
|---|---|---|
deltaX |
float | |
deltaY |
float | |
cancellationToken |
CancellationToken |
Returns: Task