Skip to content

BrowserMouse

Namespace: E2E

public sealed class BrowserMouse

Pointer 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

View source

public Task DownAsync(CancellationToken cancellationToken = default)

Presses the primary button.

Parameters

Name Type Description
cancellationToken CancellationToken

Returns: Task

View source

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

View source

public Task UpAsync(CancellationToken cancellationToken = default)

Releases the primary button.

Parameters

Name Type Description
cancellationToken CancellationToken

Returns: Task

View source

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

View source