Node

Playwright\Accessibility\Result\Node

Represents a single node (HTML element) affected by an accessibility rule.

$ composer require playwright-php/accessibility

Methods

__construct()

function __construct( public array $target, public ?string $html = null, public ?string $failureSummary = null, public array $any = [], public array $all = [], public array $none = [], )

fromArray()

self

Create a Node from axe-core JSON data.

function fromArray(array $data): self

getSelector()

string

Get the primary CSS selector for this node.

function getSelector(): string