# Get URL

> `UiPath.UIAutomationNext.Activities.NGetUrl`

`UiPath.UIAutomationNext.Activities.NGetUrl`

## Description

Retrieves the URL from the current web page.

This activity must be added inside a [Use Application/Browser](https://docs.uipath.com/activities/other/latest/ui-automation/n-application-card) activity.

To use this activity outside a **Use Application/Browser**activity, you need to provide an **Input element**.

## Project compatibility

**Windows - Legacy** | **Windows** | **Cross-platform**

## Windows and Cross-platform configuration

Properties panel

### Input/Output

* **URL** - The `String` variable in which you want to store the retrieved URL.
* **Input element** - The UI element on which the activity is executed, stored in an **UIElement** object. This field supports only **UIElement** objects. This object can be obtained from the **Output Element** property field of other UI Automation activities.

### Options

* **Continue on error** - Specifies if the automation should continue even when the activity throws an error. This field only supports **Boolean** values (**True**, **False**). The default value is **False**. As a result, if the field is blank and an error is thrown, the execution of the project stops. If the value is set to **True**, the execution of the project continues regardless of any error.
* **Wait for page load** - Before performing the action, wait for the application to become ready to accept input. You can choose one of three options from the drop-down menu:
  + **None** - Does not wait for the target to be ready.
  + **Interactive** - Waits until only a part of the app is loaded.
  + **Complete** - Waits for the entire app to be loaded.

### Timings

* **Delay before** - Delay (in seconds) between the time the previous activity is completed and the time this activity begins performing any operations. The default value is 0.2 seconds. Adding a delay between activities ensures that one activity has enough time to complete before the next activity begins.
* **Delay after** - Delay (in seconds) between the time this activity is completed and the time the next activity begins any operations. The default value is 0.3 seconds. Adding a delay between activities ensures that one activity has enough time to complete before the next activity begins.
* **Timeout** - Specify the amount of time (in seconds) to wait for the activity to be executed before throwing an error. The default value is 30 seconds.

## Windows - Legacy configuration

* **Save to** - The `String` variable in which you want to store the retrieved URL.

### Properties panel

#### Common

* **Continue on error** - Specifies if the automation should continue even when the activity throws an error. This field only supports `Boolean` values (**True**, **False**). The default value is **False**. As a result, if the field is blank and an error is thrown, the execution of the project stops. If the value is set to **True**, the execution of the project continues regardless of any error.
* **Delay after** - Delay (in seconds) between the time this activity is completed and the time the next activity begins any operations. The default value is 0.3 seconds. Adding a delay between activities ensures that one activity has enough time to complete before the next activity begins.
* **Delay before** - Delay (in seconds) between the time the previous activity is completed and the time this activity begins performing any operations. The default value is 0.2 seconds. Adding a delay between activities ensures that one activity has enough time to complete before the next activity begins.
* **Display name** - The name displayed for the activity in the Designer panel. A display name is automatically generated when you indicate a target.
* **Timeout** - Specify the amount of time (in seconds) to wait for the activity to be executed before throwing an error. The default value is 30 seconds.

* **Private** - If selected, the values of variables and arguments are no longer logged at Verbose level. This field supports only `Boolean` (**True**, **False**) values. The default value is **False**.

* **Wait for page load** - Before performing the action, wait for the application to become ready to accept input. You can choose one of three options from the drop-down menu:
  + **None** - Does not wait for the target to be ready.
  + **Interactive** - Waits until only a part of the app is loaded.
  + **Complete** - Waits for the entire app to be loaded.

* **Current URL** - See **Save to** in the Designer panel.
