Home Reference Source
public class | source

Coverage

Constructor Summary

Public Constructor
public

constructor(client: Chrome | CRIConnection | CDPSession | Object)

Member Summary

Private Members
private
private

Method Summary

Public Methods
public

startCSSCoverage(options: {resetOnNavigation?: boolean}=): *

public

startJSCoverage(options: {resetOnNavigation?: boolean, reportAnonymousScripts?: boolean}): *

public
public

Public Constructors

public constructor(client: Chrome | CRIConnection | CDPSession | Object) source

Params:

NameTypeAttributeDescription
client Chrome | CRIConnection | CDPSession | Object

Private Members

private _cssCoverage: CSSCoverage source

private _jsCoverage: JSCoverage source

Public Methods

public startCSSCoverage(options: {resetOnNavigation?: boolean}=): * source

Params:

NameTypeAttributeDescription
options {resetOnNavigation?: boolean}=
  • optional

Return:

*

public startJSCoverage(options: {resetOnNavigation?: boolean, reportAnonymousScripts?: boolean}): * source

Params:

NameTypeAttributeDescription
options {resetOnNavigation?: boolean, reportAnonymousScripts?: boolean}
  • optional
  • nullable: false

Return:

*

public stopCSSCoverage(): Promise<Array<CoverageEntry>> source

public stopJSCoverage(): Promise<Array<CoverageEntry>> source