Class CoverageStartOptions
- Namespace
- PuppeteerSharp.PageCoverage
- Assembly
- PuppeteerSharp.dll
Set of configurable options for coverage.
public class CoverageStartOptions
- Inheritance
-
CoverageStartOptions
Properties
IncludeRawScriptCoverage
Whether the result includes raw V8 script coverage entries.
public bool IncludeRawScriptCoverage { get; set; }
Property Value
ReportAnonymousScripts
Whether anonymous scripts generated by the page should be reported.
public bool ReportAnonymousScripts { get; set; }
Property Value
Remarks
Anonymous scripts are ones that don't have an associated url.
These are scripts that are dynamically created on the page using eval
or new Function
.
If ReportAnonymousScripts is set to true
, anonymous scripts will have __puppeteer_evaluation_script__
as their URL.
ResetOnNavigation
Whether to reset coverage on every navigation. Defaults to true
.
public bool ResetOnNavigation { get; set; }
Property Value
UseBlockCoverage
Whether to collect coverage information at the block level. If true, coverage will be collected at the block level (this is the default). If false, coverage will be collected at the function level.
public bool UseBlockCoverage { get; set; }