UNPKG

@serenity-js/playwright

Version:

Adapter that integrates @serenity-js/web with Playwright, enabling Serenity/JS reporting and using the Screenplay Pattern to write component and end-to-end test scenarios

19 lines 1.15 kB
import type { Discardable } from '@serenity-js/core'; import type { BrowserCapabilities } from '@serenity-js/web'; import type * as playwright from 'playwright-core'; import type { ExtraBrowserContextOptions } from '../../ExtraBrowserContextOptions.js'; import { PlaywrightBrowsingSession } from './PlaywrightBrowsingSession.js'; import type { PlaywrightPage } from './PlaywrightPage.js'; /** * @group Models */ export declare class PlaywrightBrowsingSessionWithBrowser extends PlaywrightBrowsingSession implements Discardable { protected readonly browser: playwright.Browser; protected readonly browserContextOptions: playwright.BrowserContextOptions; constructor(browser: playwright.Browser, browserContextOptions: playwright.BrowserContextOptions, extraBrowserContextOptions: ExtraBrowserContextOptions, selectors: playwright.Selectors); protected createBrowserContext(): Promise<playwright.BrowserContext>; protected registerCurrentPage(): Promise<PlaywrightPage>; browserCapabilities(): Promise<BrowserCapabilities>; discard(): Promise<void>; } //# sourceMappingURL=PlaywrightBrowsingSessionWithBrowser.d.ts.map