Get Puppeteer Lighthouse information (a11y, performance, etc) from API

πŸ’‘ For general support requests and bug reports, please go to checklyhq.com/support

Is your feature request related to a problem? Please describe. You can currently output lots of detailed information related to matters such as accessibility, performance via console.log in Checkly browser JS checks, but it doesn't appear to the possible to retrieve similar information from the API request.

So in a browser check, I can script something like this following a Puppeteer invocation:

const snapshot = await page.accessibility.snapshot();
console.log(JSON.stringify(snapshot, null, 2));

…and see page accessibility information, but you seemingly can't retrieve similar from calling the API. Similarly, you can't invoke Lighthouse and get performance/accessibility information that way, as specifying const lighthouse = require('lighthouse'); at the top of a Puppeteer script produces an error:

Dec 29 00:25:57 - ERROR - UserScript TypeError: Cannot read property 'some' of undefined

Describe the solution you'd like It would be good if you could add additional page information to the JSON that's served from calling the API (or potentially calling another API endpoint).

Describe alternatives you've considered None so far (not sure of a way around API limitations).

Additional context Add any other context or screenshots about the feature request here.

original GH issue link https://github.com/checkly/public-roadmap/issues/89

Please authenticate to join the conversation.

Upvoters
Status

In Review

Board

πŸ’‘ Feature Request

Tags

Check Types

Date

Almost 3 years ago

Author

Tim Nolet

Subscribe to post

Get notified by email when there are changes.