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

    Interface MatcherPage

    Minimal page interface for matcher operations.

    Decouples matchers from full Playwright Page, enabling unit testing with lightweight mock objects.

    const page: MatcherPage = { evaluate: async (script) => ({}) };
    
    interface MatcherPage {
        evaluate<TResult>(script: string, arg?: unknown): Promise<TResult>;
        waitForFunction(
            pageFunction: string | (() => unknown),
            options?: { timeout?: number },
        ): Promise<unknown>;
    }
    Index

    Methods

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

      Type Parameters

      • TResult

      Parameters

      • script: string
      • Optionalarg: unknown

      Returns Promise<TResult>

    • Waits for a condition in the browser context (required for bridge injection).

      Parameters

      • pageFunction: string | (() => unknown)
      • Optionaloptions: { timeout?: number }

      Returns Promise<unknown>