# Desktop

## Creating a Folder in the Element Repository

The Element Repository for **Desktop** is used to store and manage elements related to desktop applications. The following steps describe how to create a new folder in the Element Repository and set **Desktop** as the application type.

#### Steps to Create a Folder for Desktop Application Type:

1. On the **Home** page, under **Projects**, select the required project.&#x20;
2. From the top-right corner, select **Design Studio**. The **Element Repository** tab opens.
3. Select the “+” icon and select the **Create main folder** to create a new folder.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FjrYXdz8zYbPrcMbcmnns%2Fimage.png?alt=media&#x26;token=d74a3a27-238d-4a48-a65c-c42d51644bc9" alt=""><figcaption></figcaption></figure>

4. On the newly created folder, select the **ellipsis (...)**. A drop-down list appears.
5. From the drop-down list, select **Create Repository**.
6. In the **Application Type** options, select **Desktop**.

{% hint style="info" %}
**Note:** The system creates a new folder. Rename the folder with a logical name for better traceability.
{% endhint %}

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FkC9rJAjcCcSwDDK75inC%2Fimage.png?alt=media&#x26;token=d9e5910b-e458-4cdd-8dd0-ac7df440b10f" alt=""><figcaption></figcaption></figure>

## Capturing an Element in the Desktop Window

The following steps explain how to capture an element from a desktop application.

#### Steps to Capture an Element in the Desktop Window:

1. On the **Desktop** window, select the **Capture Element** to open the **Avo Assure Capture** window.
2. In the **Enter Window Name/Process ID/Process Name** textbox, enter the Window Name or Process ID/Process Name, and select the **Launch** button to navigate to the desired window.

{% hint style="info" %}
**Note:** If a desktop application does not have a window name, you can proceed using the **Process ID/Process Name** instead. To learn more, [**click here**](https://docs.avoautomation.com/working-with-the-avo-assure-platform/create-and-execute-tests-with-design-studio/working-with-element-repository-section/create-element-repository/capturing-elements-in-avo-assure/desktop/finding-process-id-process-name).
{% endhint %}

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FdA0FaFLmjwBDVv619xsY%2Fimage.png?alt=media&#x26;token=ef472676-8fcd-405c-b64e-e925525f9b0a" alt=""><figcaption></figcaption></figure>

4. Choose a method from the available **Capture Element**. Select **Capture** to capture the element.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FUYIaEUnjAML3otr12J33%2Fimage.png?alt=media&#x26;token=a8143b20-05ec-4777-9103-f3371d8bbdcf" alt=""><figcaption></figcaption></figure>

5. **Select** the elements displayed in the **Elements List** and move them to the **Element Repository** by selecting the **Add**.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2F7kb82a0m59ktTTW0r9LD%2Fimage.png?alt=media&#x26;token=6caafdbf-2d73-4985-b924-30bc1a1f8d3f" alt=""><figcaption></figcaption></figure>

6. After selecting the **Add**, the chosen elements are added to the **Element Repository**.
7. Select **Save** to save the captured elements.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FmElFB5gprAU4R8uQ8Kzg%2Fimage.png?alt=media&#x26;token=43eb76ea-31b0-484d-bda0-5e25c70d254c" alt=""><figcaption></figcaption></figure>

#### **Following are the methods available with us while capturing the window through Desktop:**

| Method           | Description                                                                                                                                                                                                                                                                                                                               |
| ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Visible**      | This method captures visible elements in the Application Under Test (AUT) by selecting appropriate element capture types from the dropdown.                                                                                                                                                                                               |
| **All**          | This enables capturing all elements in the AUT, including hidden elements regardless of their capture type.                                                                                                                                                                                                                               |
| **Manual**       | This method allows capturing elements manually by navigating to the AUT.                                                                                                                                                                                                                                                                  |
| **UI/UIA**       | <p>This method works well for modern applications and is useful for capturing elements that support Microsoft’s UI Automation. It helps Avo Assure identify elements in applications with standard UI structures.<br><strong>Note</strong>: Use the UI method by default. If the UI method does not work, use the UIA method instead.</p> |
| **Win32**        | This method works for older applications that do not fully support UIA. It helps capture elements using the Windows API, making it suitable for legacy applications or controls that are not easily identified by UIA.                                                                                                                    |
| **IRIS**         | It is used to capture the elements based on coordinates and positions on the application under test.                                                                                                                                                                                                                                      |
| **Capture type** | This type includes various element types, allowing users to choose the necessary element type and capture the elements accordingly.                                                                                                                                                                                                       |
| **Delay**        | This method works for elements that have longer loading time in the AUT, such as alert popups, hence this option specifies a certain amount of time for these elements to load before capturing them.                                                                                                                                     |
