Skip to main content

Variable: DEFAULT_TIMEOUTS

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

Defined in: src/core/utils/constants.ts:135

Default timeout values (in milliseconds) for UI5 operations.

Remarks​

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.

Example​

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

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