mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
parent
0bb462c8f5
commit
a04dedcaf8
@ -101,6 +101,14 @@ To run headless Chrome on Travis, you *must* call `launch()` with flags to disab
|
||||
const browser = await puppeteer.launch({args: ['--no-sandbox']});
|
||||
```
|
||||
|
||||
Some Puppeteer functionality (like Chrome extensions) requires non-headless mode. Running Puppeteer in non-headless mode on Travis CI can be done using an [Xvfb](https://en.wikipedia.org/wiki/Xvfb) server:
|
||||
|
||||
```yml
|
||||
before_install:
|
||||
- export DISPLAY=:99.0
|
||||
- sh -e /etc/init.d/xvfb start
|
||||
```
|
||||
|
||||
## Running Puppeteer in Docker
|
||||
|
||||
Getting headless Chrome up and running in Docker can be tricky.
|
||||
|
Loading…
Reference in New Issue
Block a user