Praman — Agent-First SAP UI5 Test Automation Plugin - v1.2.0
    Preparing search index...

    Interface FETestLibraryPage

    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.

    const page: FETestLibraryPage = playwrightPage;
    await initializeFETestLibrary(page, config);
    interface FETestLibraryPage {
        evaluate<TResult>(pageFunction: string, arg?: unknown): Promise<TResult>;
        locator(selector: string): { count(): Promise<number> };
    }
    Index

    Methods

    • Executes a script in the browser context and returns the result.

      Type Parameters

      • TResult

      Parameters

      • pageFunction: string
      • Optionalarg: unknown

      Returns Promise<TResult>

    • Returns a locator for the given CSS selector, with a count() method.

      Parameters

      • selector: string

      Returns { count(): Promise<number> }

      • count: function
        • Returns the number of elements matching the selector.

          Returns Promise<number>