这是indexloc提供的服务,不要输入任何密码
Skip to content

page.accessibility not working on https://try-puppeteer.appspot.com/ #46

@wadeharrell

Description

@wadeharrell

on https://try-puppeteer.appspot.com/

const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.goto('https://www.google.com');
console.log(!!page.accessibility);
console.log(!!page.coverage);
console.log(!!page.keyboard);
console.log(!!page.mouse);
console.log(!!page.touchscreen);
console.log(!!page.tracing);
await browser.close();

logs:

false
true
true
true
true
true

going by https://pptr.dev/#?product=Puppeteer&version=v1.19.0&show=api-class-page I would think they all should be true.

To verify it is possible, adding this to the above code does get a tree

const snapshot = await page._client.send('Accessibility.getFullAXTree');
console.log(JSON.stringify(snapshot,null,'  '));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions