puppeteer/new-docs/puppeteer.coverage.startjscoverage.md

667 B

Home > puppeteer > Coverage > startJSCoverage

Coverage.startJSCoverage() method

Signature:

startJSCoverage(options?: {
        resetOnNavigation?: boolean;
        reportAnonymousScripts?: boolean;
    }): Promise<void>;

Parameters

Parameter Type Description
options { resetOnNavigation?: boolean; reportAnonymousScripts?: boolean; }

Returns:

Promise<void>