You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Playwright Trace Viewer is a GUI tool that helps exploring recorded Playwright traces after the script ran. Open traces [locally](#viewing-the-trace) or in your browser on [`trace.playwright.dev`](https://trace.playwright.dev).
Playwright Trace Viewer is a GUI tool that helps you explore recorded Playwright traces after the script has ran. You can open traces [locally](#viewing-the-trace) or in your browser on [`trace.playwright.dev`](https://trace.playwright.dev).
In the properties pane you will also see rendered DOM snapshots associated with each action.
52
+
53
+
## Metadata
54
+
55
+
See metadata such as the time the action was performed, what browser engine was used, what the viewport was and if it was mobile and how many pages, actions and events were recorded.
When tracing with the [`option: snapshots`] option turned on, Playwright captures a set of complete DOM snapshots for each action. Depending on the type of the action, it will capture:
75
+
76
+
| Type | Description |
77
+
|------|-------------|
78
+
|Before|A snapshot at the time action is called.|
79
+
|Action|A snapshot at the moment of the performed input. This type of snapshot is especially useful when exploring where exactly Playwright clicked.|
80
+
|After|A snapshot after the action.|
81
+
82
+
<br/>
83
+
84
+
Here is what the typical Action snapshot looks like:
That helps locating the action of interest very quickly.
184
-
185
-
## Snapshots
186
-
187
-
When tracing with the [`option: snapshots`] option turned on, Playwright captures a set of complete DOM snapshots for each action. Depending on the type of the action, it will capture:
188
-
189
-
| Type | Description |
190
-
|------|-------------|
191
-
|Before|A snapshot at the time action is called.|
192
-
|Action|A snapshot at the moment of the performed input. This type of snapshot is especially useful when exploring where exactly Playwright clicked.|
193
-
|After|A snapshot after the action.|
194
-
195
-
<br/>
196
-
197
-
Here is what the typical Action snapshot looks like:
277
+
## Using [trace.playwright.dev](https://trace.playwright.dev)
[trace.playwright.dev](https://trace.playwright.dev) is a statically hosted variant of the Trace Viewer. You can upload trace files using drag and drop.
201
280
202
-
Notice how it highlights both, the DOM Node as well as the exact click position.
203
281
282
+
<imgwidth="1119"alt="Drop Playwright Trace to load"src="https://user-images.githubusercontent.com/13063165/194577918-b4d45726-2692-4093-8a28-9e73552617ef.png" />
204
283
205
-
## Viewing remote Traces
284
+
## Viewing remote traces
206
285
207
-
You can open remote traces using it's URL.
208
-
They could be generated in a CI run and makes it easy to view the remote trace without having to manually download the file.
286
+
You can open remote traces using it's URL. They could be generated on a CI run which makes it easy to view the remote trace without having to manually download the file.
## Using [trace.playwright.dev](https://trace.playwright.dev)
227
-
228
-
[trace.playwright.dev](https://trace.playwright.dev) is a statically hosted variant of the Trace Viewer.
229
-
230
-
### Viewing local traces
231
-
232
-
When navigating to [trace.playwright.dev](https://trace.playwright.dev), you can upload trace files using drag and drop.
233
-
234
-
### Remote traces
235
304
236
305
You can also pass the URL of your uploaded trace (e.g. inside your CI) from some accessible storage as a parameter. CORS (Cross-Origin Resource Sharing) rules might apply.
0 commit comments