Get Current URL

This is pre-built Action located under the @Browser Element Name. It instructs the Avo Assure Client to retrieve the current webpage's URL and save the result in the given output variable. By retrieving the current URL, you can ensure that users are being directed to the right page.

Syntax

Input: N/A

Output: <Dynamic Variable>;<Dynamic Variable>(Optional)

Usecase/Example

Scenario: Verifying the Current URL after Performing an Action or Navigation in a Web Application

User is testing a web application and need to ensure that after navigating or performing an action (e.g., clicking a link or submitting a form), the browser is directed to the correct URL. The Get Current URL Action allows you to retrieve the URL of the current page.

Expected Result

This Action needs to retrieve the current web page URL and should store it in the Output Variable.

Output

The Get Current URL Action is fetching the URL of the current page and save it in the {result} Output Variable as https://www.example.com/contact, which can be utilized for display or other purposes.

Last updated

Was this helpful?