Skip to content

CoverageStartOptions

Namespace: PuppeteerSharp.PageCoverage

public class CoverageStartOptions

Set of configurable options for coverage.

Inheritance: object

View source

public bool IncludeRawScriptCoverage { get; set; }

Whether the result includes raw V8 script coverage entries.

Value: bool

View source

public bool ReportAnonymousScripts { get; set; }

Whether anonymous scripts generated by the page should be reported.

Value: bool

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.

View source

public bool ResetOnNavigation { get; set; }

Whether to reset coverage on every navigation. Defaults to true.

Value: bool

View source

public bool UseBlockCoverage { get; set; }

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.

Value: bool

View source

Made with love by Dario Kondratiuk