• Version 0.11.0
  • Published
  • 35.7 kB
  • 3 dependencies
  • MIT license


npm i @web/test-runner-playwright
yarn add @web/test-runner-playwright
pnpm add @web/test-runner-playwright


Playwright browser launcher for Web Test Runner



function playwrightLauncher

playwrightLauncher: (args?: PlaywrightLauncherArgs) => PlaywrightLauncher;


    class PlaywrightLauncher

    class PlaywrightLauncher implements BrowserLauncher {}


      product: ProductType,
      launchOptions: LaunchOptions,
      createBrowserContextFn: CreateBrowserContextFn,
      createPageFn: CreatePageFn,
      __experimentalWindowFocus__?: boolean,
      concurrency?: number

        property concurrency

        concurrency?: number;

          property name

          name: string;

            property type

            type: string;

              method createNewPage

              createNewPage: (browser: Browser) => Promise<PlaywrightLauncherPage>;

                method getBrowserUrl

                getBrowserUrl: (sessionId: string) => string;

                  method getPage

                  getPage: (sessionId: string) => playwright.Page;

                    method initialize

                    initialize: (config: TestRunnerCoreConfig, testFiles: string[]) => Promise<void>;

                      method isActive

                      isActive: (sessionId: string) => boolean;

                        method startDebugSession

                        startDebugSession: (sessionId: string, url: string) => Promise<void>;

                          method startSession

                          startSession: (sessionId: string, url: string) => Promise<void>;

                            method stop

                            stop: () => Promise<void>;

                              method stopSession

                              stopSession: (
                              sessionId: string
                              ) => Promise<import('@web/test-runner-core').SessionResult>;


                                interface PlaywrightLauncherArgs

                                interface PlaywrightLauncherArgs {}

                                  property concurrency

                                  concurrency?: number;

                                    property createBrowserContext

                                    createBrowserContext?: CreateBrowserContextFn;

                                      property createPage

                                      createPage?: CreatePageFn;

                                        property launchOptions

                                        launchOptions?: LaunchOptions;

                                          property product

                                          product?: ProductType;

                                            Type Aliases

                                            type ProductType

                                            type ProductType = 'chromium' | 'firefox' | 'webkit';

                                              Package Files (2)

                                              Dependencies (3)

                                              Dev Dependencies (2)

                                              Peer Dependencies (0)

                                              No peer dependencies.


                                              To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                                              You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@web/test-runner-playwright.

                                              • Markdown
                                              • HTML
                                                <a href="https://www.jsdocs.io/package/@web/test-runner-playwright"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>