Minimal page interface required by the FE Test Library.
Abstracts Playwright's Page to the subset needed for script injection and WorkZone detection. This allows unit testing with lightweight mocks.
Page
const page: FETestLibraryPage = playwrightPage;await initializeFETestLibrary(page, config); Copy
const page: FETestLibraryPage = playwrightPage;await initializeFETestLibrary(page, config);
Executes a script in the browser context and returns the result.
Optional
Returns a locator for the given CSS selector, with a count() method.
count()
Returns the number of elements matching the selector.
Minimal page interface required by the FE Test Library.
Remarks
Abstracts Playwright's
Pageto the subset needed for script injection and WorkZone detection. This allows unit testing with lightweight mocks.Example