# 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](/avo-assure/utilities/encryption.md).
* 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="/files/hRauKBBbb6vQW0m1QOGW" alt=""><figcaption></figcaption></figure>

**Authentication Website Example**:

<figure><img src="/files/xUQ99oZUarTfGWmQML1C" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.avoautomation.com/avo-assure/actions/web/browser/navigate-to-page-with-authentication-1.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
