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

21 lines 1.06 kB
import type { BrowserCapabilities } from '@serenity-js/web'; import type * as playwright from 'playwright-core'; import type { ExtraBrowserContextOptions } from '../../ExtraBrowserContextOptions'; import { PlaywrightBrowsingSession } from './PlaywrightBrowsingSession'; import { PlaywrightPage } from './PlaywrightPage'; /** * @group Models */ export declare class PlaywrightBrowsingSessionWithPage extends PlaywrightBrowsingSession { protected readonly page: playwright.Page; private readonly playwrightManagedPageId; constructor(page: playwright.Page, browserContextOptions: ExtraBrowserContextOptions, selectors: playwright.Selectors); protected registerCurrentPage(): Promise<PlaywrightPage>; protected createBrowserContext(): Promise<playwright.BrowserContext>; /** * Closes any newly opened pages, leaving only the original one managed by Playwright Test. */ closeAllPages(): Promise<void>; browserCapabilities(): Promise<BrowserCapabilities>; } //# sourceMappingURL=PlaywrightBrowsingSessionWithPage.d.ts.map