ClickOptions Class
Configures a click.
public sealed class ClickOptionsConstructors
| Name | Description |
|---|---|
| ClickOptions() |
ClickOptions()
ClickOptions.cspublic ClickOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| Button | Gets the mouse button. The default is MouseButton.Left. |
| ClickCount | Gets the number of clicks (2 for a double click). The default is 1. |
| Force | 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. |
| Modifiers | Gets the modifier keys held during the click. |
| NoWaitAfter | 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. |
| Position | Gets the position of the click in the border box of the element, or null for its center. |
| Timeout | Gets the maximum time to wait until the element is actionable, or null for TestPage.DefaultTimeout. |
Button
ClickOptions.csGets the mouse button. The default is MouseButton.Left.
public MouseButton Button { get; init; }Property value
ClickCount
ClickOptions.csForce
ClickOptions.csModifiers
ClickOptions.csGets the modifier keys held during the click.
public InputModifiers Modifiers { get; init; }Property value
NoWaitAfter
ClickOptions.csGets 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
Position
ClickOptions.csGets the position of the click in the border box of the element, or null for its center.
public ElementPosition? Position { get; init; }Property value
Timeout
ClickOptions.csGets the maximum time to wait until the element is actionable, or null for TestPage.DefaultTimeout.
public TimeSpan? Timeout { get; init; }