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

    Interface OverlayRule

    A rule describing one overlay that may interrupt an action.

    Omit dismiss to detect and report only — the recommended default. Supply dismiss only when answering the overlay cannot change the meaning of the test.

    const rule: OverlayRule = {
    name: 'product-tour',
    selector: '.myTourPopover',
    dismiss: async (overlay) => overlay.getByRole('button', { name: 'Skip' }).click(),
    };
    interface OverlayRule {
        dismiss?: (overlay: Locator) => Promise<void>;
        name: string;
        selector: string;
        times?: number;
    }
    Index
    dismiss?: (overlay: Locator) => Promise<void>

    How to dismiss the overlay. When omitted the overlay is recorded and reported but never touched.

    name: string

    Stable identifier, used in logs and report attachments.

    selector: string

    Playwright selector locating the overlay. Prefer plain CSS — this is evaluated before every action.

    times?: number

    Maximum times this rule may fire per test. Defaults to 5.