Back to Puppeteer

Coverage.startCSSCoverage() method

docs/api/puppeteer.coverage.startcsscoverage.md

19.2.2577 B
Original Source

Coverage.startCSSCoverage() method

Signature

typescript
class Coverage {
  startCSSCoverage(options?: CSSCoverageOptions): Promise<void>;
}

Parameters

<table><thead><tr><th>

Parameter

</th><th>

Type

</th><th>

Description

</th></tr></thead> <tbody><tr><td>

options

</td><td>

CSSCoverageOptions

</td><td>

(Optional) Set of configurable options for coverage, defaults to resetOnNavigation : true

</td></tr> </tbody></table>

Returns:

Promise<void>

Promise that resolves when coverage is started.