WcagTag

Playwright\Accessibility\WcagTag

WCAG (Web Content Accessibility Guidelines) conformance level tags.
These tags can be used with AxeBuilder::withTags() to run only rules
associated with a specific accessibility standard.

$ composer require playwright-php/accessibility

Methods

toString()

string

Convert enum value to string for use with axe-core API.

function toString(): string

wcag20()

array

Get all WCAG 2.0 tags.

function wcag20(): array

wcag21()

array

Get all WCAG 2.1 tags.

function wcag21(): array

wcag22()

array

Get all WCAG 2.2 tags.

function wcag22(): array