LocatorOptions

Playwright\Locator\Options\LocatorOptions

Constructor options

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

self
function from(array|self $options): self

fromArray()

self
function fromArray(array $options): self

toArray()

array
function toArray(): array