Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

docs(tracing): clarify capture semantics (#11756)

Yury Semikhatsky129d9d3643e4
diff --git a/docs/src/api/class-tracing.md b/docs/src/api/class-tracing.md
index 64e4d83dfe..27c1ede630 100644
--- a/docs/src/api/class-tracing.md
+++ b/docs/src/api/class-tracing.md
@@ -125,7 +125,9 @@ a timeline preview.
### option: Tracing.start.snapshots
- `snapshots` <[boolean]>
-Whether to capture DOM snapshot on every action.
+If this option is true tracing will
+* capture DOM snapshot on every action
+* record network activity
### option: Tracing.start.sources
* langs: js, csharp, python
diff --git a/packages/playwright-core/types/types.d.ts b/packages/playwright-core/types/types.d.ts
index 4bf7fe9ba4..c14846d985 100644
--- a/packages/playwright-core/types/types.d.ts
+++ b/packages/playwright-core/types/types.d.ts
@@ -14708,7 +14708,9 @@ export interface Tracing {
screenshots?: boolean;
/**
- * Whether to capture DOM snapshot on every action.
+ * If this option is true tracing will
+ * - capture DOM snapshot on every action
+ * - record network activity
*/
snapshots?: boolean;