Skip to content

Commit

Permalink
docs: update channels doc to mention manual installation (#5964)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgozman committed Mar 26, 2021
1 parent 6c1d3f6 commit 12e0062
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/src/api/class-browsertype.md
Expand Up @@ -181,7 +181,7 @@ Whether to run browser in headless mode. More details for
### option: BrowserType.launch.channel
- `channel` <[BrowserChannel]<"chrome"|"chrome-beta"|"chrome-dev"|"chrome-canary"|"msedge"|"msedge-beta"|"msedge-dev"|"msedge-canary">>

Browser distribution channel.
Browser distribution channel. Read more about using [Google Chrome and Microsoft Edge](./browsers#google-chrome--microsoft-edge).

### option: BrowserType.launch.executablePath
- `executablePath` <[path]>
Expand Down
8 changes: 6 additions & 2 deletions docs/src/browsers.md
Expand Up @@ -17,7 +17,7 @@ when the world is on Google Chrome 89, Playwright already supports Chromium 91 t
if a few weeks.

There is also a way to opt into using Google Chrome's or Microsoft Edge's branded builds for testing. For details
on when to opt into stable channels, refer to the [Google Chrome & Microsoft Edge section below.](#google-chrome--microsoft-edge) section below.
on when to opt into stable channels, refer to the [Google Chrome & Microsoft Edge](#google-chrome--microsoft-edge) section below.

## Firefox

Expand All @@ -33,7 +33,7 @@ also working on a dedicated support for builds that would match Apple Safari Tec
## Google Chrome & Microsoft Edge

While Playwright will download and use the recent Chromium build by default, it can operate against the stock Google
Chrome and Microsoft Edge browsers. In particular, current Playwright version will support Stable and Beta channels
Chrome and Microsoft Edge browsers available on the machine. In particular, current Playwright version will support Stable and Beta channels
of these browsers. Here is how you can opt into using the stock browser:

```js
Expand Down Expand Up @@ -67,6 +67,10 @@ browser = await playwright.chromium.launch(channel="chrome")
browser = playwright.chromium.launch(channel="chrome")
```

:::note
Playwright bundles a recent Chromium build, but not Google Chrome or Microsoft Edge browsers - these should be installed manually before use.
:::

### When to use Google Chrome & Microsoft Edge and when not to?

**Defaults**
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion types/types.d.ts
Expand Up @@ -10648,7 +10648,8 @@ export interface LaunchOptions {
args?: Array<string>;

/**
* Browser distribution channel.
* Browser distribution channel. Read more about using
* [Google Chrome and Microsoft Edge](https://playwright.dev/docs/browsers#google-chrome--microsoft-edge).
*/
channel?: "chrome"|"chrome-beta"|"chrome-dev"|"chrome-canary"|"msedge"|"msedge-beta"|"msedge-dev"|"msedge-canary";

Expand Down

0 comments on commit 12e0062

Please sign in to comment.