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

17 lines 924 B
import type { BrowserCapabilities } from '@serenity-js/web'; import type * as playwright from 'playwright-core'; import type { PlaywrightOptions } from '../../PlaywrightOptions'; import { PlaywrightBrowsingSession } from './PlaywrightBrowsingSession'; import type { PlaywrightPage } from './PlaywrightPage'; /** * @group Models */ export declare class PlaywrightBrowsingSessionWithBrowser extends PlaywrightBrowsingSession { protected readonly browser: playwright.Browser; constructor(browser: playwright.Browser, browserContextOptions: PlaywrightOptions, selectors: playwright.Selectors); protected createBrowserContext(options: PlaywrightOptions): Promise<playwright.BrowserContext>; protected registerCurrentPage(): Promise<PlaywrightPage>; closeAllPages(): Promise<void>; browserCapabilities(): Promise<BrowserCapabilities>; } //# sourceMappingURL=PlaywrightBrowsingSessionWithBrowser.d.ts.map