PageAssertions
Playwright\Assertions\PageAssertionsInterface
Methods
toHaveTitle()
selffunction toHaveTitle(string|\Stringable $expected, ?AssertionOptions $options = null): self
toHaveURL()
selffunction toHaveURL(string|\Stringable $expected, ?AssertionOptions $options = null): self
toMatchAriaSnapshot()
selfAsserts the ARIA snapshot of the page body equals the expectation. Compares the YAML as text, ignoring blank lines, trailing whitespace and the indentation shared by every line. The expectation describes the whole body subtree, not a subset of it.
function toMatchAriaSnapshot(string $expected, ?AssertionOptions $options = null): self
not()
selffunction not(): self
withTimeout()
selffunction withTimeout(int $timeoutMs): self
withPollInterval()
selffunction withPollInterval(int $pollIntervalMs): self