Praman — AI-First SAP UI5 Test Automation Platform - v1.0.1
    Preparing search index...

    Variable DEFAULT_TIMEOUTSConst

    DEFAULT_TIMEOUTS: Readonly<
        {
            CACHE_TTL: 5000;
            CONTROL_DISCOVERY: 10000;
            DOM_SETTLE: 500;
            POLLING_INTERVAL: 100;
            UI5_BOOTSTRAP: 60000;
            UI5_WAIT: 15000;
        },
    > = ...

    Default timeout values (in milliseconds) for UI5 operations.

    These timeouts are calibrated from production SAP BTP deployments:

    • UI5_WAIT: General UI5 stability wait (covers most XHR/Promise settling)
    • CONTROL_DISCOVERY: Finding controls after navigation or dialog open
    • UI5_BOOTSTRAP: Initial UI5 library + component loading (slow on first load)
    • DOM_SETTLE: DOM mutation settling after property changes
    • POLLING_INTERVAL: Bridge polling loop interval
    • CACHE_TTL: Control metadata cache time-to-live

    All values are positive integers representing milliseconds.

    import { DEFAULT_TIMEOUTS } from '#core/utils/constants.js';

    await page.waitForFunction(() => window.sap !== undefined, {
    timeout: DEFAULT_TIMEOUTS.UI5_BOOTSTRAP,
    });