Skip to content

Commit

Permalink
docs: update some documentation (#13123)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lightning00Blade authored Sep 25, 2024
1 parent dfd2e64 commit 68f3693
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 12 deletions.
6 changes: 5 additions & 1 deletion docs/api/puppeteer.launchoptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,11 @@ string

</td><td>

Path to a browser executable to use instead of the bundled Chromium. Note that Puppeteer is only guaranteed to work with the bundled Chromium, so use this setting at your own risk.
Path to a browser executable to use instead of the bundled browser. Note that Puppeteer is only guaranteed to work with the bundled browser, so use this setting at your own risk.

**Remarks:**

When using this is recommended to set the `browser` property as well as Puppeteer will default to `chrome` by default.

</td><td>

Expand Down
2 changes: 1 addition & 1 deletion docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ usually check through CI:
properly and are functional.
- `test-types` - Tests the TypeScript types in `puppeteer` using
[`tsd`](https:/SamVerschueren/tsd).
- `test:chrome:**` - Tests `puppeteer` on Chromium.
- `test:chrome:**` - Tests `puppeteer` on Chrome.
- `test:firefox:**` - Tests `puppeteer` on Firefox.
- `unit` - Runs unit tests.
Expand Down
13 changes: 5 additions & 8 deletions docs/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ ENV CHROME_DEVEL_SANDBOX /usr/local/sbin/chrome-devel-sandbox
Tips-n-tricks:

- [xvfb](https://en.wikipedia.org/wiki/Xvfb) service should be launched in order
to run Chromium in non-headless mode
to run Chrome for Testing in non-headless mode
- Runs on Xenial Linux on Travis by default
- Runs `npm install` by default
- `node_modules` is cached by default
Expand Down Expand Up @@ -377,17 +377,17 @@ Running Puppeteer smoothly on CircleCI requires the following steps:
> instructions below might be still helpful if you are building your own image.

Getting headless Chrome up and running in Docker can be tricky. The bundled
Chromium that Puppeteer installs is missing the necessary shared library
Chrome for Testing that Puppeteer installs is missing the necessary shared library
dependencies.

To fix, you'll need to install the missing dependencies and the latest Chromium
To fix, you'll need to install the missing dependencies and the latest Chrome for Testing
package in your Dockerfile:

```Dockerfile
FROM node:14-slim
# Install latest chrome dev package and fonts to support major charsets (Chinese, Japanese, Arabic, Hebrew, Thai and a few others)
# Note: this installs the necessary libs to make the bundled version of Chromium that Puppeteer
# Note: this installs the necessary libs to make the bundled version of Chrome for Testing that Puppeteer
# installs, work.
RUN apt-get update \
&& apt-get install -y wget gnupg \
Expand All @@ -404,7 +404,7 @@ RUN apt-get update \
# RUN chmod +x /usr/local/bin/dumb-init
# ENTRYPOINT ["dumb-init", "--"]

# Uncomment to skip the chromium download when installing puppeteer. If you do,
# Uncomment to skip the Chrome for Testing download when installing puppeteer. If you do,
# you'll need to launch puppeteer with:
# browser.launch({executablePath: 'google-chrome-stable'})
# ENV PUPPETEER_SKIP_DOWNLOAD true
Expand Down Expand Up @@ -704,9 +704,6 @@ Chrome (and therefore Puppeteer) on Lambda. The community has put together a few
resources that work around the issues:

- https:/sparticuz/chromium (a vendor and framework agnostic library that supports modern versions of `chromium`)
- https:/alixaxel/chrome-aws-lambda (supports up to puppeteer 10.1 - outdated)
- https:/adieuadieu/serverless-chrome/blob/HEAD/docs/chrome.md
(serverless plugin - outdated)

### Running Puppeteer on AWS EC2 instance running Amazon-Linux

Expand Down
8 changes: 6 additions & 2 deletions packages/puppeteer-core/src/node/LaunchOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,13 @@ export interface LaunchOptions {
*/
channel?: ChromeReleaseChannel;
/**
* Path to a browser executable to use instead of the bundled Chromium. Note
* that Puppeteer is only guaranteed to work with the bundled Chromium, so use
* Path to a browser executable to use instead of the bundled browser. Note
* that Puppeteer is only guaranteed to work with the bundled browser, so use
* this setting at your own risk.
*
* @remarks
* When using this is recommended to set the `browser` property as well
* as Puppeteer will default to `chrome` by default.
*/
executablePath?: string;
/**
Expand Down

0 comments on commit 68f3693

Please sign in to comment.