Resources

Knowledge Base

How to use the "Get Attribute" activity

What is an attribute ?

An element stores valuable information about the control it identifies. For example, it stores information about its position or title. If it is a list, it knows its items, if it is a check box it knows if it is checked.

Each information  is an attribute of the element and you can retrieve it using GetAttribute activity .

 

Examples

1. Using Get Attribute ("AppPath") activity for Calculator we have extracted the path of the application.

1. List of attributes available. 
2. A variable that keeps the attribute as a string. 

2. Using Get Attribute activity to verify if a check box is checked or not.

How to inspect attribute values

UiExplorer -> Property Explorer let's you inspect the values for all the attributes of an element.

ui-explorer-property explorer.png

Download workflow example