try-puppeteer icon indicating copy to clipboard operation
try-puppeteer copied to clipboard

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

Open wadeharrell opened this issue 5 years ago • 1 comments

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,'  '));

wadeharrell avatar Sep 11 '19 23:09 wadeharrell

try-puppeteer is using Puppeteer v1.4.0 where page.accessibility was not yet introduced. According to docs only introduced in v3.0.4.

theDavidBarton avatar Oct 06 '21 17:10 theDavidBarton