chore(types): add channel to launchServer (#6256)
This commit is contained in:
parent
6bdc67ac6a
commit
7053ac9097
|
|
@ -295,7 +295,7 @@ Whether to run browser in headless mode. More details for
|
|||
### option: BrowserType.launchPersistentContext.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.md#google-chrome--microsoft-edge).
|
||||
|
||||
### option: BrowserType.launchPersistentContext.executablePath
|
||||
- `executablePath` <[path]>
|
||||
|
|
@ -399,6 +399,11 @@ Whether to run browser in headless mode. More details for
|
|||
|
||||
Port to use for the web socket. Defaults to 0 that picks any available port.
|
||||
|
||||
### option: BrowserType.launchServer.channel
|
||||
- `channel` <[BrowserChannel]<"chrome"|"chrome-beta"|"chrome-dev"|"chrome-canary"|"msedge"|"msedge-beta"|"msedge-dev"|"msedge-canary">>
|
||||
|
||||
Browser distribution channel. Read more about using [Google Chrome and Microsoft Edge](./browsers.md#google-chrome--microsoft-edge).
|
||||
|
||||
### option: BrowserType.launchServer.executablePath
|
||||
- `executablePath` <[path]>
|
||||
|
||||
|
|
|
|||
|
|
@ -75,6 +75,7 @@ export type ConnectOptions = {
|
|||
logger?: Logger,
|
||||
};
|
||||
export type LaunchServerOptions = {
|
||||
channel?: channels.BrowserTypeLaunchOptions['channel'],
|
||||
executablePath?: string,
|
||||
args?: string[],
|
||||
ignoreDefaultArgs?: boolean | string[],
|
||||
|
|
|
|||
9
types/types.d.ts
vendored
9
types/types.d.ts
vendored
|
|
@ -6711,7 +6711,8 @@ export interface BrowserType<Unused = {}> {
|
|||
bypassCSP?: boolean;
|
||||
|
||||
/**
|
||||
* 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";
|
||||
|
||||
|
|
@ -7039,6 +7040,12 @@ export interface BrowserType<Unused = {}> {
|
|||
*/
|
||||
args?: Array<string>;
|
||||
|
||||
/**
|
||||
* 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";
|
||||
|
||||
/**
|
||||
* Enable Chromium sandboxing. Defaults to `true`.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue