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
Both [Firefox](https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Headless_mode) and [Chrome](https://developers.google.com/web/updates/2017/04/headless-chrome) support running tests in headless mode.
269
+
When using headless mode, there's no need for the [Xvfb](https://en.wikipedia.org/wiki/Xvfb) server to be started.
270
+
271
+
To avoid starting the server you can set the `START_XVFB` environment variable to `false` (or any other value than `true`), for example:
For more information, see this Github [issue](https://github.com/SeleniumHQ/docker-selenium/issues/567).
278
+
266
279
## Building the images
267
280
268
281
Clone the repo and from the project directory root you can build everything by running:
@@ -465,3 +478,15 @@ You can turn on debugging by passing environment variable to the hub and the nod
465
478
```
466
479
GRID_DEBUG=true
467
480
```
481
+
482
+
#### Headless
483
+
484
+
If you see the following selenium exceptions:
485
+
486
+
`Message: invalid argument: can't kill an exited process`
487
+
488
+
or
489
+
490
+
`Message: unknown error: Chrome failed to start: exited abnormally`
491
+
492
+
The reason _might_ be that you've set the `START_XVFB` environment variable to "false", but forgot to actually run Firefox or Chrome (respectively) in headless mode.
0 commit comments