Skip to main content
Version: 23.10.1

Coverage.startCSSCoverage() 方法

¥Coverage.startCSSCoverage() method

签名

¥Signature

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

参数

¥Parameters

范围

类型

描述

options

CSSCoverageOptions

(可选的)一组可配置的覆盖范围选项,默认为 resetOnNavigation : true

Returns:

Promise<void>

Promise 在覆盖范围开始时解决。

¥Promise that resolves when coverage is started.