Skip to content
masterclass Buddy

Playwright · Matcher

toHaveAccessibleDescription

Checks that a Locator has the expected accessible description. It retries until the description matches or the assertion timeout is reached.

Last updated

Since
v1.44

Syntax

await expect(locator).toHaveAccessibleDescription(description, options);

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • toHaveAccessibleName
  • toHaveAttribute
  • toHaveRole
  • toHaveText
  • not

Source: LocatorAssertions | Playwright. Checked 2026-11-03.