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
{{ message }}
Repository navigation
Commit 7a751ea
Browse filesBrowse the repository at this point in the historyBrowse files
Name trace screenshots by their actual image format
Every screenshot resource was written as .jpeg, though WebDriver and the
polling recorder capture PNG, so a viewer that takes the content type from
the file name served a PNG as image/jpeg. The name now follows the bytes,
for the per-action screenshots and the dense filmstrip alike, and the
resource, filmstrip frame, frame-snapshot override and synthetic resource
all take it from one function. The reader opens whatever name an event
records, so zips written before this still open.
Closes#505
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A trace's screenshots are named by their actual image format. A PNG capture used to be stored as `resources/<page>-<timestamp>.jpeg`, so a viewer that takes the content type from the file name served it as `image/jpeg`; it is now `.png`, and so is a PNG frame of the dense filmstrip. Traces written before this change still open.
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -225,7 +225,7 @@ In trace mode no DevTools UI window opens. At session end the adapter writes tra
225
225
The trace artifact contains:
226
226
-`trace.trace` — NDJSON `context-options` + `before`/`after` action events. When test hooks are available (Mocha's `it()` / Cucumber's `Scenario()`), each test becomes a `Tracing.tracingGroup` span — an open/close `before`/`after` pair with `method: "tracingGroup"` and `params.name` set to the test title. Child actions inside the group carry `parentId` pointing back to the group's `callId`, so timeline viewers render tests as labelled spans wrapping their commands. For viewers that render a DOM snapshot per action, it also carries one `frame-snapshot` event per action: a page holding just that action's screenshot. The image is not stored a second time: its `src` is a placeholder `https://screenshot.wdio-devtools.invalid/` address, which the event's `resourceOverrides` maps to the screenshot's file under `resources/`.
227
227
-`trace.network` — HAR-style network entries derived from the existing capture
228
-
-`resources/page@<id>-<ts>.jpeg` — screenshot per user-facing action
228
+
-`resources/page@<id>-<ts>.png` or `.jpeg`: screenshot per user-facing action, named by its actual image format
229
229
-`resources/page@<id>-<ts>-elements.json` — flat interactable element list extracted by the page-injected scripts in `@wdio/devtools-core/element-scripts`
0 commit comments