Skip to Content

Usage

This example shows how to use UserWay App Puppeteer to run static page analysis on a webpage:

;(async () => { const browser = await puppeteer.launch({ headless: false }) const page = await browser.newPage() await page.goto( 'we need to deploy some demo page (Google demo: https://www.google.com/)', ) await userwayAnalysis(page) await browser.close() })()

By default, UserWay App Puppeteer scans the page for AA violations and asserts on the number of issues, but you can easily customize it’s behavior.

Last updated on