ClickOptions Class

Configures a click.

public sealed class ClickOptions

Constructors

NameDescription
ClickOptions()

ClickOptions()

ClickOptions.cs
public ClickOptions()

No documentation is available.

Properties

NameDescription
ButtonGets the mouse button. The default is MouseButton.Left.
ClickCountGets the number of clicks (2 for a double click). The default is 1.
ForceGets whether the click is sent without waiting until the element is actionable: visible, stable, enabled and not covered by another element. The element still needs a non-empty box.
ModifiersGets the modifier keys held during the click.
NoWaitAfterGets whether the click returns without waiting until the page is idle: only the tasks that the click queued run. Use it to check the state of the page while an asynchronous event handler is in progress (a loading indicator), then wait for the result with TestPage.WaitForAssertionAsync.
PositionGets the position of the click in the border box of the element, or null for its center.
TimeoutGets the maximum time to wait until the element is actionable, or null for TestPage.DefaultTimeout.

Gets the mouse button. The default is MouseButton.Left.

public MouseButton Button { get; init; }

Property value

MouseButton

ClickCount

ClickOptions.cs

Gets the number of clicks (2 for a double click). The default is 1.

public int ClickCount { get; init; }

Property value

int

Gets whether the click is sent without waiting until the element is actionable: visible, stable, enabled and not covered by another element. The element still needs a non-empty box.

public bool Force { get; init; }

Property value

bool

Gets the modifier keys held during the click.

public InputModifiers Modifiers { get; init; }

Property value

InputModifiers

NoWaitAfter

ClickOptions.cs

Gets whether the click returns without waiting until the page is idle: only the tasks that the click queued run. Use it to check the state of the page while an asynchronous event handler is in progress (a loading indicator), then wait for the result with TestPage.WaitForAssertionAsync.

public bool NoWaitAfter { get; init; }

Property value

bool

Gets the position of the click in the border box of the element, or null for its center.

public ElementPosition? Position { get; init; }

Property value

ElementPosition?

Gets the maximum time to wait until the element is actionable, or null for TestPage.DefaultTimeout.

public TimeSpan? Timeout { get; init; }

Property value

TimeSpan?