GetByRoleOptions

Playwright\Locator\Options\GetByRoleOptions

Constructor options

OptionTypeDefault
checked ?bool null
disabled ?bool null
exact ?bool null
expanded ?bool null
includeHidden ?bool null
level ?int null
name string|Regex|null null
pressed bool|string|null null
selected ?bool null
locatorOptions LocatorOptions new LocatorOptions()

Methods

__construct()

function __construct( public ?bool $checked = null, public ?bool $disabled = null, public ?bool $exact = null, public ?bool $expanded = null, public ?bool $includeHidden = null, public ?int $level = null, public string|Regex|null $name = null, public bool|string|null $pressed = null, public ?bool $selected = null, public LocatorOptions $locatorOptions = new LocatorOptions(), )

from()

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

toArray()

array
function toArray(): array