Created
May 8, 2020 20:00
-
-
Save manoj9788/3188aa5e599bb73edec4aa7cccbc82e6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { chromium } = require('playwright'); | |
(async () => { | |
const browser = await chromium.launch(); | |
const context = await browser.newContext(); | |
const page = await context.newPage(); | |
page.on('pageerror', console.log); | |
await page.goto('https://www.gov.uk/'); | |
const snapshot = await page.accessibility.snapshot(); | |
console.log(snapshot); | |
await browser.close(); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment