FilterOptions

Playwright\Locator\Options\FilterOptions

Constructor options

OptionTypeDefault
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()

array
function toArray(): array

from()

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