VerifyCurrentURL

This pre-built Action, found under @Browser Element Name, instructs the Avo Assure Client to verify whether the page URL matches the provided Input Value. The result is saved in the specified output variable. The Verify Current URL Action is effective for confirming that the browser navigates to the correct page, simplifying validation by directly comparing the current URL with the expected one and automatically failing the test if they do not

Syntax

Input: <url>

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

Usecase/Example

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

When testing a web application you need to ensure that after performing a specific action (such as clicking a link, submitting a form, or navigating through the app), the browser navigates to the correct URL. The Verify Current URL Action is used to directly check if the current URL matches the expected value.

Input

Expected URL after clicking the link: https://www.example.com/contact

Expected Result

This Action needs to verify the URL of the current page with the URL which is given as Input in the Input Value and save the status of this Action in the Output Variable as Fail or Pass. (Fail- if both URL are different, Pass- if both URL are same)

Output

The VerifyCurrentURL Action verifies the URL of the page with the URL provided in Input Value, and execution status “Fail”/ “Pass” will be stored in variable {result}, which can be utilized for display or other purposes.

Last updated

Was this helpful?