Table of Contents

Class PageDragAndDropOptions

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

Constructors

PageDragAndDropOptions()

public PageDragAndDropOptions()

PageDragAndDropOptions(PageDragAndDropOptions)

public PageDragAndDropOptions(PageDragAndDropOptions clone)

Parameters

clone PageDragAndDropOptions

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

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?

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?