Skip to content

TypeScript: Page type missing accessibility API #38461

@schickling

Description

@schickling

Issue

Page from @playwright/test / playwright-core does not expose the accessibility API in its type definitions.

Repro

import { test } from '@playwright/test'

test('a11y', async ({ page }) => {
  await page.accessibility().snapshot({ interestingOnly: false })
})

Error

Property 'accessibility' does not exist on type 'Page'.

Expected

Page should expose the accessibility handle (method or property) so that snapshot can be called without augmentation. The runtime API works; only the types are missing.

Versions

  • @playwright/test: 1.57.0
  • node: 20.17.0
  • platform: macOS (arm64)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions