Table of Contents

Class PageClickOptions

Namespace
Microsoft.Playwright
Assembly
Microsoft.Playwright.dll
public class PageClickOptions
Inheritance
PageClickOptions
Inherited Members

Constructors

PageClickOptions()

public PageClickOptions()

PageClickOptions(PageClickOptions)

public PageClickOptions(PageClickOptions clone)

Parameters

clone PageClickOptions

Properties

Button

Defaults to left.

[JsonPropertyName("button")]
public MouseButton? Button { get; set; }

Property Value

MouseButton?

ClickCount

defaults to 1. See .

[JsonPropertyName("clickCount")]
public int? ClickCount { get; set; }

Property Value

int?

Delay

Time to wait between mousedown and mouseup in milliseconds. Defaults to 0.

[JsonPropertyName("delay")]
public float? Delay { get; set; }

Property Value

float?

Force

Whether to bypass the actionability checks. Defaults to false.

[JsonPropertyName("force")]
public bool? Force { get; set; }

Property Value

bool?

Modifiers

Modifier keys to press. Ensures that only these modifiers are pressed during the operation, and then restores current modifiers back. If not specified, currently pressed modifiers are used. "ControlOrMeta" resolves to "Control" on Windows and Linux and to "Meta" on macOS.

[JsonPropertyName("modifiers")]
public IEnumerable<KeyboardModifier>? Modifiers { get; set; }

Property Value

IEnumerable<KeyboardModifier>

NoWaitAfter

Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading. You can opt out of waiting via setting this flag. You would only need this option in the exceptional cases such as navigating to inaccessible pages. Defaults to false.

[JsonPropertyName("noWaitAfter")]
public bool? NoWaitAfter { get; set; }

Property Value

bool?

Position

A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the element.

[JsonPropertyName("position")]
public Position? Position { get; set; }

Property Value

Position

Strict

When true, the call requires selector to resolve to a single element. If given selector resolves to more than one element, the call throws an exception.

[JsonPropertyName("strict")]
public bool? Strict { get; set; }

Property Value

bool?

Timeout

Maximum time in milliseconds. Defaults to 30000 (30 seconds). Pass 0 to disable timeout. The default value can be changed by using the SetDefaultTimeout(float) or SetDefaultTimeout(float) methods.

[JsonPropertyName("timeout")]
public float? Timeout { get; set; }

Property Value

float?

Trial

When set, this method only performs the actionability checks and skips the action. Defaults to false. Useful to wait until the element is ready for the action without performing it.

[JsonPropertyName("trial")]
public bool? Trial { get; set; }

Property Value

bool?