@web/test-runner-playwright

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

Install

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

Overview

Playwright browser launcher for Web Test Runner

Index

Functions

function playwrightLauncher

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

    Classes

    class PlaywrightLauncher

    class PlaywrightLauncher implements BrowserLauncher {}

      constructor

      constructor(
      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>;

                                Interfaces

                                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.

                                              Badge

                                              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
                                                [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@web/test-runner-playwright)
                                              • 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>