activities
latest
false
UiPath logo, featuring letters U and I in white
UI Automation Activities
Last updated Nov 25, 2024

GetAttribute

Retrieves the value of a specified attribute of the indicated UI element.

This API must be added after Open or Attach.

Definition

Namespace: UiPath.UIAutomationNext.API.Models

Assembly: UiPath.UIAutomationNext.API.Models (in UiPath.UIAutomationNext.API.Models dll)

Overloads

OverloadDescription
GetAttribute(RuntimeTarget, GetAttributeOptions)Retrieves the value of a specified attribute of the indicated UI element, identified by a runtime instance of an Object Repository element, along with other configurations.
GetAttribute(TargetAnchorableModel, GetAttributeOptions)Retrieves the value of a specified attribute of the indicated UI element, identified by the TargetAnchorableModel object, along with other configurations.
GetAttribute(String, GetAttributeOptions)Retrieves the value of a specified attribute of the indicated UI element, identified by a string from Object Repository, along with other configurations.
GetAttribute(IElementDescriptor, String)Retrieves the value of a specified attribute of the indicated UI element, identified by a descriptor of an element from Object Repository, while specifying the name of the attribute.
GetAttribute(IElementDescriptor, GetAttributeOptions)Retrieves the value of a specified attribute of the indicated UI element, identified by a descriptor of a UI element from Object Repository, along with other configurations.
GetAttribute(String, String)Retrieves the value of a specified attribute of the indicated UI element, identified by a string from Object Repository, while specifying the name of the attribute.
GetAttribute(TargetAnchorableModel, String)Retrieves the value of a specified attribute of the indicated UI element, identified by the TargetAnchorableModel object, while specifying the name of the attribute.

GetAttribute(RuntimeTarget, GetAttributeOptions)

Retrieves the value of a specified attribute of the indicated UI element, identified by a runtime instance of an Object Repository element, along with other configurations.

GetAttribute(
    RuntimeTarget target,
    GetAttributeOptions getAttributeOptions)GetAttribute(
    RuntimeTarget target,
    GetAttributeOptions getAttributeOptions)
target RuntimeTarget
The target from where to get the wanted attribute, identified by a runtime instance of an Object Repository element.
getAttributeOptions GetAttributeOptions
Additional options to customize the process of retrieving attribute value. You can choose to customize:
  • GetAttributeBaseOptions:
    • Attribute - The name of the attribute you want to retrieve.

GetAttribute(TargetAnchorableModel, GetAttributeOptions)

Retrieves the value of a specified attribute of the indicated UI element, identified by the TargetAnchorableModel object, along with other configurations.
GetAttribute(
    TargetAnchorableModel target,
    GetAttributeOptions getAttributeOptions)GetAttribute(
    TargetAnchorableModel target,
    GetAttributeOptions getAttributeOptions)
target TargetAnchorableModel
The target from where to get the wanted attribute, identified by the TargetAnchorableModel object.
getAttributeOptions GetAttributeOptions
Additional options to customize the process of retrieving attribute value. You can choose to customize:
  • GetAttributeBaseOptions:
    • Attribute - The name of the attribute you want to retrieve.

GetAttribute(String, GetAttributeOptions)

Retrieves the value of a specified attribute of the indicated UI element, identified by a string from Object Repository, along with other configurations.

GetAttribute(
    string target,
    GetAttributeOptions getAttributeOptions)GetAttribute(
    string target,
    GetAttributeOptions getAttributeOptions)
target String
The target from where to get the wanted attribute, identified by a string from Object Repository.
getAttributeOptions GetAttributeOptions
Additional options to customize the process of retrieving attribute value. You can choose to customize:
  • GetAttributeBaseOptions:
    • Attribute - The name of the attribute you want to retrieve.

GetAttribute(IElementDescriptor, String)

Retrieves the value of a specified attribute of the indicated UI element, identified by a descriptor of an element from Object Repository, while specifying the name of the attribute.

GetAttribute(
    IElementDescriptor elementDescriptor,
    string attribute)GetAttribute(
    IElementDescriptor elementDescriptor,
    string attribute)
elementDescriptor IElementDescriptor
The element from which you want to retrieve the attribute value, identified by a descriptor of a UI element from Object Repository.
attribute String
The name of the attribute you want to retrieve.

GetAttribute(IElementDescriptor, GetAttributeOptions)

Retrieves the value of a specified attribute of the indicated UI element, identified by a descriptor of a UI element from Object Repository, along with other configurations.

GetAttribute(
    IElementDescriptor elementDescriptor,
    GetAttributeOptions getAttributeOptions)GetAttribute(
    IElementDescriptor elementDescriptor,
    GetAttributeOptions getAttributeOptions)
elementDescriptor IElementDescriptor
The element from which you want to retrieve the attribute value, identified by a descriptor of a UI element from Object Repository.
getAttributeOptions GetAttributeOptions
Additional options to customize the process of retrieving attribute value. You can choose to customize:
  • GetAttributeBaseOptions:
    • Attribute - The name of the attribute you want to retrieve.

GetAttribute(String, String)

Retrieves the value of a specified attribute of the indicated UI element, identified by a string from Object Repository, while specifying the name of the attribute.

GetAttribute(
    string target,
    string attribute)GetAttribute(
    string target,
    string attribute)
target String
The target from where to get the wanted attribute, identified by a string from Object Repository.
attribute String
The name of the attribute you want to retrieve.

GetAttribute(TargetAnchorableModel, String)

Retrieves the value of a specified attribute of the indicated UI element, identified by the TargetAnchorableModel object, while specifying the name of the attribute.
GetAttribute(
    TargetAnchorableModel target,
    string attribute)GetAttribute(
    TargetAnchorableModel target,
    string attribute)
target TargetAnchorableModel
The target from where to get the wanted attribute, identified by the TargetAnchorableModel object.
attribute String
The name of the attribute you want to retrieve.

Return value

The value of the attribute.

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.