Table of Contents

Class LocatorDragToOptions

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

Constructors

LocatorDragToOptions()

public LocatorDragToOptions()

LocatorDragToOptions(LocatorDragToOptions)

public LocatorDragToOptions(LocatorDragToOptions clone)

Parameters

clone LocatorDragToOptions

Properties

Force

Whether to bypass the actionability checks. Defaults to false.

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

Property Value

bool?

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?

SourcePosition

Clicks on the source element at this point relative to the top-left corner of the element's padding box. If not specified, some visible point of the element is used.

[JsonPropertyName("sourcePosition")]
public SourcePosition? SourcePosition { get; set; }

Property Value

SourcePosition

TargetPosition

Drops on the target element at this point relative to the top-left corner of the element's padding box. If not specified, some visible point of the element is used.

[JsonPropertyName("targetPosition")]
public TargetPosition? TargetPosition { get; set; }

Property Value

TargetPosition

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?