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

    Function collectPageDiagnostics

    • Collects console output, page errors, and network requests from a page.

      Parameters

      • page: Page

        The Playwright page to inspect.

      Returns Promise<PageDiagnostics>

      Capped, JSON-serialisable diagnostics. Never throws.

      ui5Diagnostics.collect

      const diagnostics = await collectPageDiagnostics(page);
      await testInfo.attach('ui5-diagnostics', {
      contentType: 'application/json',
      body: Buffer.from(JSON.stringify(diagnostics, null, 2), 'utf8'),
      });