Desktop

Creating 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.

To select the Desktop as the Application Type, perform the following actions:

  1. On the Home page, under Projects, select the required Project.

  2. Select Design Studio. In the Element Repository page, locate the Create Folder (+) icon.

  3. Select Create Folder (+) icon and select Create new folder to create a new folder for element repository. A new folder is created.

  4. In the New Folder text box, enter the element repository folder name.

  1. In the newly created folder, select the Ellipsis (...) icon > Create Repository > Desktop to create the repository. A new folder is created.

  2. In the New Repository text box, enter the folder name. This completes creating a repository with Desktop as the application type.

Note: Rename the folder with a logical name for better traceability.

Capturing an Elements

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

To capture an element in the Desktop window, perform the following actions:

  1. In the created repository, select the Capture Element button 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.

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.

  1. In the available Capture Element options, select the desired method (e.g., Visible/All/Manual/IRIS) > Capture to capture the element.

  1. Select the required elements from the Elements list. Select the Add button to include them in the Element Repository.

  1. After selecting the Add, the selected elements are added to the Element Repository.

  2. Select Save to save the captured elements.

Capturing Methods for Desktop Window

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.

UIA

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.

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. For example: Full, Button, Textbox, Dropdown, and others.

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.

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.

  2. From the top-right corner, select Design Studio. The Element Repository tab opens.

  3. Select the “+” icon and select the Create new folder to create a new folder.

  1. On the newly created folder, select the ellipsis (...). A drop-down list appears.

  2. From the drop-down list, select Create Repository.

  3. In the Application Type options, select Desktop.

Note: The system creates a new folder. Rename the folder with a logical name for better traceability.

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.

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.

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

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

  1. After selecting the Add, the chosen elements are added to the Element Repository.

  2. Select Save to save the captured elements.

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.

UIA

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.

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.

Last updated

Was this helpful?