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