Skip to content

Commit 1b1b143

Browse files
authored
Update README.md
1 parent 2537327 commit 1b1b143

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

packages/selenium-devtools/README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ import { Builder, By, until } from 'selenium-webdriver'
4444
import { DevTools } from '@wdio/selenium-devtools'
4545

4646
DevTools.configure({
47-
screencast: { enabled: true, quality: 70, maxWidth: 1280, maxHeight: 720 },
48-
headless: true
47+
screencast: { enabled: true, quality: 70, maxWidth: 1280, maxHeight: 720 }
4948
})
5049

5150
describe('smoke test', function () {
@@ -85,8 +84,7 @@ import { DevTools } from '@wdio/selenium-devtools'
8584
import { Builder, By, until } from 'selenium-webdriver'
8685

8786
DevTools.configure({
88-
screencast: { enabled: true, quality: 70, maxWidth: 1280, maxHeight: 720 },
89-
headless: true
87+
screencast: { enabled: true, quality: 70, maxWidth: 1280, maxHeight: 720 }
9088
})
9189

9290
describe('login flow', () => {
@@ -142,8 +140,7 @@ Cucumber's split layout means three small files — one to configure the plugin,
142140
import { DevTools } from '@wdio/selenium-devtools'
143141

144142
DevTools.configure({
145-
screencast: { enabled: true, quality: 70, maxWidth: 1280, maxHeight: 720 },
146-
headless: true
143+
screencast: { enabled: true, quality: 70, maxWidth: 1280, maxHeight: 720 }
147144
})
148145
```
149146

@@ -256,13 +253,14 @@ The runner snippets above use a typical config:
256253

257254
```javascript
258255
DevTools.configure({
259-
screencast: { enabled: true, quality: 70, maxWidth: 1280, maxHeight: 720 },
260-
headless: true
256+
screencast: { enabled: true, quality: 70, maxWidth: 1280, maxHeight: 720 }
261257
})
262258
```
263259

264260
Here's what every option does, in plain language. **All are optional** — the plugin runs fine with `DevTools.configure({})` or no configure call at all.
265261

262+
> **For CI**, set both `headless: true` (hide the test browser) and `openUi: false` (don't try to open the dashboard window). The backend stays running on the configured port so you can still open the UI later.
263+
266264
#### `screencast` — record a video of the browser
267265
**Default:** off. Set `{ enabled: true }` to record a `.webm` video for every browser session. Watch it back in the "Screencast" tab in the dashboard.
268266

0 commit comments

Comments
 (0)