try-puppeteer
try-puppeteer copied to clipboard
page.accessibility not working on https://try-puppeteer.appspot.com/
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,' '));
try-puppeteer is using Puppeteer v1.4.0 where page.accessibility
was not yet introduced. According to docs only introduced in v3.0.4.