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

    Type Alias MatcherCheckFn<TArgs>

    MatcherCheckFn: (
        page: MatcherPage,
        controlId: string,
        ...args: TArgs,
    ) => Promise<PollableMatcherResult>

    A raw check function that evaluates a UI5 control assertion without retry.

    Type Parameters

    • TArgs extends readonly unknown[] = readonly unknown[]

      Tuple of additional arguments after (page, controlId).

    Type Declaration

      • (
            page: MatcherPage,
            controlId: string,
            ...args: TArgs,
        ): Promise<PollableMatcherResult>
      • Parameters

        Returns Promise<PollableMatcherResult>

    This is the function shape users provide to createUI5Matcher. It receives the page, control ID, and any number of additional arguments, and returns a single-shot PollableMatcherResult.

    const checkFn: MatcherCheckFn<[string]> = async (page, controlId, expected) => {
    const actual = await getControlProperty(page, controlId, 'icon');
    return { pass: actual === expected, message: () => '...' };
    };