chromiumCoverage.startCSSCoverage([options])

    • <Object> Set of configurable options for coverage
    • returns: <> Promise that resolves when coverage is started

    chromiumCoverage.startJSCoverage([options])

    • options <> Set of configurable options for coverage
      • resetOnNavigation <boolean> Whether to reset coverage on every navigation. Defaults to true.
      • reportAnonymousScripts <> Whether anonymous scripts generated by the page should be reported. Defaults to false.
    • returns: <Promise> Promise that resolves when coverage is started

    chromiumCoverage.stopCSSCoverage()

    • returns: <Promise<<Object>>> Promise that resolves to the array of coverage reports for all stylesheets
      • url <> StyleSheet URL
      • text <string> StyleSheet content, if available.
      • ranges <<Object>> StyleSheet ranges that were used. Ranges are sorted and non-overlapping.
        • end <> An end offset in text, exclusive

    chromiumCoverage.stopJSCoverage()

    • returns: <<Array<>>> Promise that resolves to the array of coverage reports for all scripts
      • url <string> Script URL
      • source <> Script content, if applicable.
      • functions <Array<>> V8-specific coverage format.