UiPath Documentation
activities
latest
false
UIAutomation-Aktivitäten
Wichtig :
Bitte beachten Sie, dass dieser Inhalt teilweise mithilfe von maschineller Übersetzung lokalisiert wurde. Es kann 1–2 Wochen dauern, bis die Lokalisierung neu veröffentlichter Inhalte verfügbar ist.

Attribut erhalten (Get Attribute)

GetAttribute in der von Mobile Automation codierten Automatisierungs-API: Ruft ein Attribut eines angegebenen UI-Elements ab.

Ruft ein Attribut eines angegebenen UI-Elements ab.

Definition

Namespace: UiPath.MobileAutomation.API.Models

Assembly: UiPath.MobileAutomation.API (in UiPath.MobileAutomation.API.dll)

Überladungen

ÜberladenBeschreibung
GetAttribute(IElementDescriptor, string, MobileOptions.GetAttributeOptions)Ruft ein Attribut eines angegebenen UI-Elements ab, das als IEelementDescriptor identifiziert wurde.
GetAttribute(ObjectRepositoryTarget, string, MobileOptions.GetAttributeOptions)Ruft ein Attribut eines angegebenen UI-Elements ab, das als ObjectRepositoryTarget identifiziert wurde.
GetAttribute(SelectorTarget, string, MobileOptions.GetAttributeOptions)Ruft ein Attribut eines angegebenen UI-Elements ab, das als SelectorTarget identifiziert wurde.

GetAttribute(IElementDescriptor, string, MobileOptions.GetAttributeOptions)

Ruft ein Attribut eines angegebenen UI-Elements ab, das als IEelementDescriptor identifiziert wurde.

GetAttribute(
	    IElementDescriptor element,
	    string attributeName,
	    MobileOptions. GetAttributeOptions options = null
)
GetAttribute(
	    IElementDescriptor element,
	    string attributeName,
	    MobileOptions. GetAttributeOptions options = null
)

element IElementDescriptor: Ein UI-Element aus dem Object Repository, auf das Sie mit der Klasse ObjectRepository.Descriptors zugreifen.

Visit [Using objects in coded automations](https://docs.uipath.com/studio/standalone/2023.10/user-guide/creating-an-object-repository#using-objects-in-coded-automations) to learn how to use Object Repository elements in coded automations.
Visit [Using objects in coded automations](https://docs.uipath.com/de/studio/standalone/2023.10/user-guide/creating-an-object-repository#using-objects-in-coded-automations) to learn how to use Object Repository elements in coded automations.

attributeName Zeichenfolge: Der Name des Attributs, das Sie vom angegebenen UI-Element abrufen möchten.

options MobileOptions.GetAttributeOptions (Optional): Gibt den MobileOptions.GetAttributeOptions für die GetAttribute -Aktion an. Der Standardwert ist null.

GetAttribute(ObjectRepositoryTarget, string, MobileOptions.GetAttributeOptions)

Ruft ein Attribut eines angegebenen UI-Elements ab, das als ObjectRepositoryTarget identifiziert wurde.

GetAttribute(
	    ObjectRepositoryTarget objectRepositoryTarget,
	    string attributeName,
	    MobileOptions. GetAttributeOptions options = null
)
GetAttribute(
	    ObjectRepositoryTarget objectRepositoryTarget,
	    string attributeName,
	    MobileOptions. GetAttributeOptions options = null
)

objectRepositoryTarget ObjectRepositoryTarget: Ein Objekt vom Typ ObjectRepositoryTarget. Kann mit den Methoden FromObjectRepository(String, String, String, String) oder FromObjectRepository(String[] , String, String, String) erstellt werden.

attributeName Zeichenfolge: Der Name des Attributs, das Sie vom angegebenen UI-Element abrufen möchten.

options MobileOptions.GetAttributeOptions (Optional): Gibt den MobileOptions.GetAttributeOptions für die GetAttribute -Aktion an. Der Standardwert ist null.

GetAttribute(SelectorTarget, string, MobileOptions.GetAttributeOptions)

Ruft ein Attribut eines angegebenen UI-Elements ab, das als SelectorTarget identifiziert wurde.

GetAttribute(
	    SelectorTarget targetSelector,
	    string attributeName,
	    MobileOptions. GetAttributeOptions options = null
)
GetAttribute(
	    SelectorTarget targetSelector,
	    string attributeName,
	    MobileOptions. GetAttributeOptions options = null
)

selectorTarget Selektorziel: Ein Objekt des Typs SelectorTarget . Kann mit der FromSelector(String) -Methode erstellt werden.

attributeName Zeichenfolge: Der Name des Attributs, das Sie vom angegebenen UI-Element abrufen möchten.

options MobileOptions.GetAttributeOptions (Optional): Gibt den MobileOptions.GetAttributeOptions für die GetAttribute -Aktion an. Der Standardwert ist null.

Rückgabewert

Der Wert des abgerufenen Attributs.

War diese Seite hilfreich?

Verbinden

Benötigen Sie Hilfe? Support

Möchten Sie lernen? UiPath Academy

Haben Sie Fragen? UiPath-Forum

Auf dem neuesten Stand bleiben