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

    Interface NativeDialogRule

    A policy for answering one kind of native dialog.

    const rule: NativeDialogRule = {
    name: 'discard-unsaved',
    types: ['beforeunload'],
    action: 'accept',
    };
    interface NativeDialogRule {
        action: NativeDialogAction;
        name: string;
        promptText?: string;
        times?: number;
        types: readonly NativeDialogType[];
    }
    Index

    Whether to accept or dismiss.

    name: string

    Stable identifier, used in logs and records.

    promptText?: string

    Text supplied when accepting a prompt. Ignored for other types.

    times?: number

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

    types: readonly NativeDialogType[]

    Dialog types this rule answers. Must not be empty.