LocatorOptions
Playwright\Locator\Options\LocatorOptions
Constructor options
| Option | Type | Default |
|---|---|---|
| has | ?LocatorInterface | null |
| hasNot | ?LocatorInterface | null |
| hasText | ?string | null |
| hasNotText | ?string | null |
| strict | ?bool | null |
| extras | array | [] |
Methods
__construct()
function __construct( public ?LocatorInterface $has = null, public ?LocatorInterface $hasNot = null, public ?string $hasText = null, public ?string $hasNotText = null, public ?bool $strict = null, private array $extras = [], )
from()
selffunction from(array|self $options): self
fromArray()
selffunction fromArray(array $options): self
toArray()
arrayfunction toArray(): array