# Navigate to Page with Authentication

This is a pre-built Action located under the **@Browser Element**. The functionality of this Action in Avo Assure is to open the given URL and log in using the Username and Password provided in the **Input Value** column. The result is stored in a dynamic variable for further use during test execution.

## Syntax

**Input Value**: `<URL>;<UserName>;<EncryptedPassword>`&#x20;

<table><thead><tr><th>Argument</th><th>Description</th><th data-hidden></th></tr></thead><tbody><tr><td>&#x3C;URL><br>(Required)</td><td>Provide the web address of the application to access.</td><td></td></tr><tr><td>&#x3C;UserName><br>(Required)</td><td>Provide the username to log into the application.</td><td></td></tr><tr><td>&#x3C;EncryptedPassword><br>(Required)</td><td>Provide the encrypted password for secure login.</td><td></td></tr></tbody></table>

{% hint style="info" %}
**Note**:

* Ensure that the password is encrypted using the AES method. For more information, [click here](https://docs.avoautomation.com/utilities/encryption).
* Use a website that requires authentication with a username and password through a single popup authentication window.
  {% endhint %}

**Output Value**: `<Dynamic Variable>(Optional);<Dynamic Variable>(Optional)`

<table><thead><tr><th>Argument</th><th>Description</th><th data-hidden></th></tr></thead><tbody><tr><td>&#x3C;Dynamic Variable>(Optional);&#x3C;Dynamic Variable>(Optional)</td><td>Both dynamic variable stores the status as <strong>True</strong> or <strong>False</strong>.</td><td></td></tr></tbody></table>

#### **Example: Navigating to a Secured Web Page Using Authentication Credentials**

In this example, we explain how to navigate to a secured web page that requires authentication using the **Navigate to Page with Authentication** action.

* **Action**: Navigate to Page with Authentication
* **Input Value**: <https://example.com;admin;iPh64rgJnD4sSbVyDKqRWw==>
  * The URL (**<https://example.com>**) specifies the secured web page to be accessed.
  * The username (**admin**) defines the login credential used for authentication.
  * The Encrypted Password **(iPh64rgJnD4sSbVyDKqRWw==**) provides the encoded password for secure access.
* **Output Value**: {Navigate}
  * The result of the navigation is stored in this **{Navigate}** dynamic variable with the following possible values:
    * **True**: If the page is accessed successfully using valid credentials.
    * **False**: If the authentication fails or an error occurs during navigation.
* **Logical Explanation:** The **Navigate to Page with Authentication** action takes the value from the **Input Value** column (**<https://example.com;admin;iPh64rgJnD4sSbVyDKqRWw==>** ) and attempts to access the specified URL using the provided username and encrypted password. If the authentication is successful, the result of the operation is stored in the **{NavigateToPage}** variable as true.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FAoC9DMBU6eQTVLapt5sw%2Fimage.png?alt=media&#x26;token=8598e684-b65f-4582-ba08-78685239bacf" alt=""><figcaption></figcaption></figure>

**Authentication Website Example**:

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2Frlt0X7dm6cExqot9wgB5%2Fimage.png?alt=media&#x26;token=0aaf6f2a-f5a8-491d-a1d8-e493676d49eb" alt=""><figcaption></figcaption></figure>
