DragAndDropOptions
Playwright\Page\Options\DragAndDropOptions
Constructor options
| Option | Type | Default |
|---|---|---|
| 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()
arrayfunction toArray(): array
from()
selffunction from(array|self $options = []): self