ClickOptions
Playwright\Locator\Options\ClickOptions
Constructor options
| Option | Type | Default |
|---|---|---|
| button | ?string | null |
| clickCount | ?int | null |
| delay | ?float | null |
| position | ?array | null |
| modifiers | ?array | null |
| force | ?bool | null |
| noWaitAfter | ?bool | null |
| timeout | ?float | null |
| trial | ?bool | null |
Methods
__construct()
function __construct( public ?string $button = null, public ?int $clickCount = null, public ?float $delay = null, public ?array $position = null, public ?array $modifiers = null, public ?bool $force = null, public ?bool $noWaitAfter = null, public ?float $timeout = null, public ?bool $trial = null, )
toArray()
arrayfunction toArray(): array
from()
selffunction from(array|self $options = []): self