DragAndDropOptions

Playwright\Page\Options\DragAndDropOptions

Constructor options

OptionTypeDefault
sourcePosition ?array null
targetPosition ?array null
force ?bool null
noWaitAfter ?bool null
scroll ?string null
strict ?bool null
steps ?int null
timeout ?float null
trial ?bool null

Methods

__construct()

function __construct( public ?array $sourcePosition = null, public ?array $targetPosition = null, public ?bool $force = null, public ?bool $noWaitAfter = null, public ?string $scroll = null, public ?bool $strict = null, public ?int $steps = null, public ?float $timeout = null, public ?bool $trial = null, )

toArray()

array
function toArray(): array

from()

self
function from(array|self $options = []): self