Skip to main content

How to get the application URL?

Capture

Suppose you want to extract the Current Application URL in Scenario Editor

Captureof the currentapplication. URLBelow whenis athe Scenario Editor test needsmethod to verifyextract navigation, store a deep link, or include location evidence in execution output.it.

_eval("window.location.href")

guidance
  • 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 parts needed by the test.
  • Mask or avoid logging sensitive query parameters.

Validation workflow

  1. Navigate to the target flow.
  2. Wait for the page to finish 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.

Last updated: SeptemberJune 20,26, 20262023

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