Playwright · Matcher
toBeEditable
Playwright assertions use expect and matchers to check values and browser state. Web assertions retry until the condition passes or the assertion timeout is reached.
Last updated
Syntax
await expect(locator).toHaveText(expected, options?)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
expecttoHaveTexttoBeVisibletoBeHiddentoHaveURLtoHaveTitletoBeOKnot