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

    Function getCurrentHash

    • Ai

      Returns the current URL hash (without leading '#').

      Parameters

      • page: NavigationPage

        Playwright Page (or compatible subset).

      Returns Promise<string>

      The current hash string.

      ui5Navigation.getCurrentHash

      Read the current FLP navigation hash to determine which app is active.

      Returns the current hash string without the leading '#'.

      Pure read operation (no stability wait). Use for assertions or conditional navigation.

      sap.ushell.Container — Read current FLP hash from window.location.hash

      Determine the current active SAP Fiori app from the URL hash.

      const hash = await getCurrentHash(page);
      // 'PurchaseOrder-manage'