@wdio/nightwatch-devtools 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +2491 -123
- package/dist/index.js.map +1 -1
- package/package.json +9 -6
package/README.md
CHANGED
|
@@ -82,8 +82,9 @@ module.exports = {
|
|
|
82
82
|
|--------|------|---------|-------------|
|
|
83
83
|
| `port` | `number` | `3000` | Port for the DevTools backend server. Auto-incremented if already in use. |
|
|
84
84
|
| `hostname` | `string` | `'localhost'` | Hostname the backend server binds to. |
|
|
85
|
-
| `screencast` | `ScreencastOptions` | `{ enabled: false }` | Session video recording (see [Screencast](#screencast)). |
|
|
85
|
+
| `screencast` | `ScreencastOptions` | `{ enabled: false }` | Session video recording — live mode only (see [Screencast](#screencast)). |
|
|
86
86
|
| `bidi` | `boolean` | `false` | Opt into WebDriver BiDi capture for browser console + JS exceptions + network. Requires `webSocketUrl: true` in your capabilities and a BiDi-capable chromedriver. When attached, the per-command Chrome perf-log network path is gated off so requests don't duplicate. |
|
|
87
|
+
| `mode` | `'live' \| 'trace'` | `'live'` | `'live'` opens the DevTools UI window; `'trace'` skips the UI and writes a `trace-<sessionId>.zip` next to your `nightwatch.conf.cjs` at run end. See [Trace mode](../../README.md#-trace-mode-tracezip). |
|
|
87
88
|
|
|
88
89
|
```javascript
|
|
89
90
|
globals: nightwatchDevtools({
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ScreencastOptions } from '@wdio/devtools-shared';
|
|
1
|
+
import { ScreencastOptions, DevToolsMode, TraceFormat } from '@wdio/devtools-shared';
|
|
2
2
|
|
|
3
3
|
/** Nightwatch `eventHub` shape — only `runner` + `on()` are documented; the
|
|
4
4
|
* rest of the public surface is `unknown` to us. */
|
|
@@ -25,6 +25,11 @@ interface DevToolsOptions {
|
|
|
25
25
|
* entries. Defaults to `false` — opt-in.
|
|
26
26
|
*/
|
|
27
27
|
bidi?: boolean;
|
|
28
|
+
/** `live` (default) launches the DevTools UI; `trace` skips it. */
|
|
29
|
+
mode?: DevToolsMode;
|
|
30
|
+
/** Trace output layout — `zip` (default) writes a single archive,
|
|
31
|
+
* `ndjson-directory` unpacks into `trace-<id>/`. Only applies in trace mode. */
|
|
32
|
+
traceFormat?: TraceFormat;
|
|
28
33
|
}
|
|
29
34
|
interface NightwatchBrowser {
|
|
30
35
|
url: (url: string) => Promise<unknown>;
|