Skip to main content

Capture the Current Application URL in Scenario Editor

Capture the Current Application URL in Scenario Editor

SupposeCapture youthe wantcurrent URL when a Scenario Editor test needs to extractverify navigation, store a deep link, or include location evidence in execution output.

  • Use URL validation for navigation outcomes, redirects, or route-specific behavior.
  • Avoid hard-coding environment-specific hosts in reusable scenarios.
  • Compare only the stable URL ofparts needed by the application.test.
  • Mask Belowor isavoid logging sensitive query parameters.

Validation workflow

  1. Navigate to the methodtarget flow.
  2. Wait for the page to extractfinish it.loading or for a stable route marker.
  3. Capture the current URL.
  4. Validate the expected path, domain, or parameter according to the test objective.

_eval("window.location.href")


Last updated: JuneSeptember 26,20, 20232026

If you have any feedback on this topic, please contact us at documentation@appvance.ai