README: fix example

This commit is contained in:
Andrey Lushnikov 2017-08-15 10:12:55 -07:00 committed by GitHub
parent 5778b54924
commit cd54e5fb11

View File

@ -105,7 +105,7 @@ is guaranteed to work out of the box. To use Puppeteer with a different version
pass in the executable's path when creating a `Browser` instance: pass in the executable's path when creating a `Browser` instance:
```js ```js
const browser = new Browser({executablePath: '/path/to/Chrome'}); const browser = await puppeteer.launch({executablePath: '/path/to/Chrome'});
``` ```
See [`Browser`](https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#new-browseroptions) for more information. See [`Browser`](https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#new-browseroptions) for more information.