studio
2023.4
false
Wichtig :
Es kann 1–2 Wochen dauern, bis die Lokalisierung neu veröffentlichter Inhalte verfügbar ist.
UiPath logo, featuring letters U and I in white

Studio-Benutzerhandbuch

Letzte Aktualisierung 3. Sep. 2025

Über Selektoren

Um bestimmte Aktionen in der Benutzeroberfläche zu automatisieren, ist es nötig, dass Sie mit verschiedenen Fenstern, Schaltflächen, Dropdownlisten und vielen anderen interagieren. Eine der Möglichkeiten, wie UI-Elemente identifiziert werden können, ist die Verwendung ihrer Position auf dem Bildschirm, aber dies kann unzuverlässig sein

Um dieses Problem zu lösen, verwendet Studio sogenannte Selektoren. Diese speichern die Attribute eines grafischen Benutzeroberflächenelements und die übergeordneten Elemente in Form eines XML-Fragments.

In den meisten Fällen werden Selektoren automatisch von Studio generiert und erfordern keine weiteren Eingaben durch den Benutzer, insbesondere dann nicht, wenn die Apps, die automatisiert werden sollen, über eine statische Benutzeroberfläche verfügen.

Einige Softwareprogramme haben jedoch wechselnde Layouts und Attributknoten mit flüchtigen Werten, wie z. B. einige Web-Apps. Studio kann diese Änderungen nicht vorhersagen. Daher müssen Sie möglicherweise einige Selektoren manuell generieren.

Ein Selektor hat folgende Struktur:

<node_1/><node_2/>...<node_N/><node_1/><node_2/>...<node_N/>

Der letzte Knoten repräsentiert das gewünschte GUI-Element und alle vorherigen repräsentieren die übergeordneten Elemente dieses Elements. <node_1> wird normalerweise als Stammknoten bezeichnet und stellt das Fenster der obersten Ebene der App dar.

Jeder Knoten verfügt über ein oder mehrere Attribute, mit denen Sie eine bestimmte Ebene der ausgewählten Anwendung korrekt identifizieren können.

Ein Knoten hat das folgende Format: 

<ui_system attr_name_1='attr_value_1' ... attr_name_N='attr_value_N'/><ui_system attr_name_1='attr_value_1' ... attr_name_N='attr_value_N'/>

Jedes Attribut besitzt einen zugewiesenen Wert. Es ist wichtig, Attribute mit einem konstanten Wert auszuwählen. Wenn sich der Wert eines Attributs jedes Mal ändert, wenn die App gestartet wird, kann der Selektor das Element nicht korrekt identifizieren.

Selektoren werden im Eigenschaftenbereich der Aktivitäten unter Eingabe > Ziel > Selektor angezeigt. Alle Aktivitäten im Zusammenhang mit grafischen Elementen haben diese Eigenschaft.



Das Fenster Auswahloptionen ermöglicht es Ihnen, ein Ziel auszuwählen und zu bearbeiten. Um auf dieses Fenster zuzugreifen, klicken Sie im Bereich Workflow-Designer im Text einer Aktivität auf die Optionsschaltfläche und wählen Sie Ziel auf Bildschirm anzeigen oder Ziel bearbeiten aus.



Das Fenster Selektor-Editor ermöglicht es Ihnen, automatisch generierte Selektoren anzuzeigen und diese und deren Attribute zu bearbeiten. Um auf dieses Fenster zuzugreifen, verwenden Sie die Ellipsenschaltfläche neben dem Feld Selektor im Eigenschaftenbereich.



Option

Beschreibung

Überprüfen

Die Schaltfläche zeigt den Status des Selektors durch Überprüfen der Gültigkeit der Selektordefinition und die Sichtbarkeit des Zielelements auf dem Bildschirm.

Die Schaltfläche Überprüfen hat drei Zustände:

  • docs image Selektor wird validiert
  • docs image Gültiger Selektor
  • docs image Ungültiger Selektor
  • docs image Geänderter Selektor, neu validieren

Die Schaltfläche ist mit UI Explorer-Validierungsstatus korreliert.

Element angeben

Geben ein neues UI-Element an, um das vorherige zu ersetzen.

Reparieren

Ermöglicht Ihnen, dasselbe UI-Zielelement erneut anzugeben und den Selektor zu reparieren. Diese Operation ersetzt den vorherigen Selektor nicht vollständig. Die Schaltfläche ist nur verfügbar, wenn der Selektor ungültig ist.

Markieren (Highlight)

Stellt das Zielelement in den Vordergrund. Die Hervorhebung bleibt bestehen, bis die Option durch Klicken deaktiviert wird. Die Schaltfläche ist nur aktiviert, wenn der Selektor gültig ist.

Attribute bearbeiten (Edit Attributes)

Enthält alle Anwendungskomponenten, die zur Erkennung der Zielanwendung erforderlich sind (Fenster, Schaltfläche usw.). Dieser Abschnitt ist bearbeitungsfähig

Selektor bearbeiten (Edit Selector)

Enthält den jeweiligen Selektor. Dieser Abschnitt ist bearbeitungsfähig

In UI Explorer öffnen

Startet den UI Explorer. Die Schaltfläche ist nur aktiviert, wenn der Selektor gültig ist.

Hinweis: In einigen Situationen, in denen Studio und die Zielanwendung mit unterschiedlichen erhöhten Berechtigungen geöffnet werden, funktioniert der Selektor möglicherweise nicht. Wir empfehlen, immer beide Anwendungen mit den gleichen Rechten zu öffnen.

Unterstützte Tags und Attribute

In folgenden Tabellen sehen Sie die Kompatibilität zwischen Tags und Attributen zur Erstellung von Selektoren und der Selektorfähigkeit.

Unter macOS können Selektortypen wie wnd, ax, java und sap für verschiedene Praxisfälle verwendet werden:
  • AX-Selektoren sind für alle Arten von macOS-Desktopanwendungen verfügbar.
  • SAP-Selektoren sind für SAP GUI für Java auf macOS verfügbar und benötigen einen SAP-Server mit aktiviertem Skripting. Diese Selektoren sind am stabilsten für SAP-Anwendungen und verfügen über die besten Funktionen, wie etwa die Extraktion von Tabellendaten.
  • Java-Selektoren sind für Java-Anwendungen verfügbar. Da SAP GUI für Java auch eine Java-basierte Anwendung ist, können Sie mithilfe der Java-Auswahlstrategie von der Standardauswahlstrategie zu Java-Selektoren wechseln.
Hinweis: Selektoren, die für Java-Anwendungen generiert wurden und mehrere WND-Tags enthalten, können nicht mit der Ereignisüberwachung verwendet werden.

WND

Attribut

Fuzzy

RegEx

Berücksichtigung von Groß- und Kleinschreibung

OS

app

available

available

available

Windows

macOS

cls

available

available

available

Windows

title

available

available

available

Windows

macOS

aaname

available

available

available

Windows

ctrlname (WinForms)

available

available

available

Windows

ctrlid (WinForms)

available

available

available

Windows

idx

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

Windows

macOS

tid

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

Windows

macOS

pid

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

Windows

macOS

isremoteapp

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

Windows

aastate

available

available

available

Windows
RolleavailableavailableavailablemacOS
enabledavailableavailableavailablemacOS
fokussiertavailableavailableavailablemacOS
AusgewähltavailableavailableavailablemacOS
ErweitertavailableavailableavailablemacOS

sapClient (SAP)

available

available

available

Windows

macOS

sapLanguage (SAP)

available

available

available

Windows

macOS

sapProgram (SAP)

available

available

available

Windows

macOS

sapScreen (SAP)

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

Windows

macOS

sapSession (SAP)

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

Windows

macOS

sapSysName (SAP)

available

available

available

Windows

macOS

sapSysNumber (SAP)

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

Windows

macOS

sapSysSessionId (SAP)

available

available

available

Windows

macOS

sapTransaction (SAP)

available

available

available

Windows

macOS

sapUser (SAP)

available

available

available

Windows

macOS

curlApplet (Curl) availableavailableavailableWindows

HTML

Attribut

Fuzzy

RegEx

Berücksichtigung von Groß- und Kleinschreibung

OS

url

available

available

available

Windows

macOS

Linux

htmlwindowname

available

available

available

Windows

macOS

Linux

title

available

available

available

Windows

macOS

Linux

class

available

available

available

Windows

macOS

Linux

app

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

Windows

macOS

Linux

idx

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

Windows

macOS

Linux

pid

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

Windows

macOS

Linux

tid

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

Windows

macOS

Linux

excludehwnd

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

Windows

macOS

Linux

bsid (Browser Session ID)

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

Windows

macOS

Linux

isremoteapp

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

Windows

macOS

Linux

WEBCTRL

Die Attribute Tag und idx verwenden Zeichenfolgenwerte. Alle anderen WEBCTRL-Attribute haben dynamische Werte.

Attribut

Fuzzy

RegEx

Berücksichtigung von Groß- und Kleinschreibung

OS

tag

available

available

available

Windows

macOS

Linux

idx

available

available

available

Windows

macOS

Linux

aaname

available

available

available

Windows

macOS

Linux

name

available

available

available

Windows

macOS

Linux

id

available

available

available

Windows

macOS

Linux

parentid

available

available

available

Windows

macOS

Linux

class

available

available

available

Windows

macOS

Linux

css-selector

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

Windows

macOS

Linux

innertext

available

available

available

Windows

macOS

Linux

visibleinnertext

available

available

available

Windows

macOS

Linux

isleaf

available

available

available

Windows

macOS

Linux

parentclass

available

available

available

Windows

macOS

Linux

parentname

available

available

available

Windows

macOS

Linux

src

available

available

available

Windows

macOS

Linux

href

available

available

available

Windows

macOS

Linux

tableCol

available

available

available

Windows

macOS

Linux

tableRow

available

available

available

Windows

macOS

Linux

colName

available

available

available

Windows

macOS

Linux

rowName

available

available

available

Windows

macOS

Linux

aria-label

available

available

available

Windows

macOS

Linux

aria-labelledby

available

available

available

Windows

macOS

Linux

STRG

Attribut

Fuzzy

RegEx

Berücksichtigung von Groß- und Kleinschreibung

OS

Rolle

available

available

available

Windows

name

available

available

available

Windows

automationid

available

available

available

Windows

labeledby

available

available

available

Windows

aastate

available

available

available

Windows

virtualname

available

available

available

Windows

text

available

available

available

Windows

rowName

available

available

available

Windows

idx

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

Windows

UIA

Attribut

Fuzzy

RegEx

Berücksichtigung von Groß- und Kleinschreibung

OS

accelkey (Zugriffstaste)

available

available

available

Windows

acskey (Zugriffsschlüssel)

available

available

available

Windows

automationid

available

available

available

Windows

cls

available

available

available

Windows

helpText

available

available

available

Windows

legacyAccHelp (alte zugängliche Hilfe)

available

available

available

Windows

enabled

available

available

available

Windows

kbfocus (ist Tastatur-fokussierbar)

available

available

available

Windows

ispwd (ist Kennwort)

available

available

available

Windows

itemstatus

available

available

available

Windows

itemtype

available

available

available

Windows

rtid (Laufzeit-ID)

available

available

available

Windows

Rolle

available

available

available

Windows

name

available

available

available

Windows

pid

available

available

available

Windows

tableRow

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

Windows

tableCol

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

Windows

rowName

available

available

available

Windows

colName

available

available

available

Windows

idx

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

Windows

Java

Attribut

Fuzzy

RegEx

Berücksichtigung von Groß- und Kleinschreibung

OS

Rolle

available

available

available

Windows

macOS

name

available

available

available

Windows

macOS

virtualname

available

available

available

Windows

macOS

javastate

available

available

available

Windows

macOS

tableRow

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

Windows

macOS

tableCol

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

Windows

macOS

rowName

available

available

available

Windows

macOS

colName

available

available

available

Windows

macOS

idx

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

Windows

macOS

clsavailableavailableavailable

Windows

macOS

Zugänglicheklasseavailableavailableavailable

Windows

macOS

SAP

Attribut

Fuzzy

RegEx

Berücksichtigung von Groß- und Kleinschreibung

OS

id

available

available

available

Windows

macOS

leafid

Dieses Attribut wird im Bereich Attribut nicht verfügbar gemacht, da es sich gegenseitig mit dem Attribut id ausschließt. Es kann manuell hinzugefügt werden.

available

available

available

Windows

macOS

tableRow

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

Windows

macOS

tableCol

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

Windows

macOS

colName

available

available

available

Windows

macOS

relpath

available

available

available

Windows

macOS

itemId

available

available

available

Windows

macOS

AX

AttributFuzzyRegExBerücksichtigung von Groß- und KleinschreibungOS
RolleavailableavailableavailablemacOS
UnterrolleavailableavailableavailablemacOS
nameavailableavailableavailablemacOS
titleavailableavailableavailablemacOS
BezeichneravailableavailableavailablemacOS
FileNameavailableavailableavailablemacOS
urlavailableavailableavailablemacOS
HilfeavailableavailableavailablemacOS
enabledavailableavailableavailablemacOS
fokussiertavailableavailableavailablemacOS
AusgewähltavailableavailableavailablemacOS
ErweitertavailableavailableavailablemacOS
idxNicht verfügbarNicht verfügbarNicht verfügbarmacOS

cURL

AttributFuzzyRegExBerücksichtigung von Groß- und KleinschreibungOS
clsavailableavailableavailableWindows
RolleavailableavailableavailableWindows
textavailableavailableavailableWindows
titleavailableavailableavailableWindows
tableRowNicht verfügbarNicht verfügbarNicht verfügbarWindows
tableColNicht verfügbarNicht verfügbarNicht verfügbarWindows
colHeaderavailableavailableavailableWindows
idxNicht verfügbarNicht verfügbarNicht verfügbarWindows

Silverlight

Bitte beachten Sie, dass das Silverlight-Tag nicht unterstützt Unscharf, RegExund Groß-/Kleinschreibung beachten Fähigkeiten.

AttributFuzzyRegExBerücksichtigung von Groß- und KleinschreibungOS
RolleNicht verfügbarNicht verfügbarNicht verfügbarWindows
nameNicht verfügbarNicht verfügbarNicht verfügbarWindows
textNicht verfügbarNicht verfügbarNicht verfügbarWindows
idxNicht verfügbarNicht verfügbarNicht verfügbarWindows

RDP

Das RDP-Tag wird für die Remote-Automatisierung verwendet, und seine Attribute sind identisch mit dem WND-Tag.

AttributFuzzyRegExBerücksichtigung von Groß- und KleinschreibungOS
appavailableavailableavailableWindows
clsavailableavailableavailableWindows
titleavailableavailableavailableWindows
aanameavailableavailableavailableWindows
ctrlname (WinForms) availableavailableavailableWindows
ctrlid (WinForms) availableavailableavailableWindows
idxNicht verfügbarNicht verfügbarNicht verfügbarWindows
tidNicht verfügbarNicht verfügbarNicht verfügbarWindows
pidNicht verfügbarNicht verfügbarNicht verfügbarWindows
  • Unterstützte Tags und Attribute
  • WND
  • HTML
  • WEBCTRL
  • STRG
  • UIA
  • Java
  • SAP
  • AX
  • cURL
  • Silverlight
  • RDP

War diese Seite hilfreich?

Hilfe erhalten
RPA lernen – Automatisierungskurse
UiPath Community-Forum
Uipath Logo
Vertrauen und Sicherheit
© 2005–2025 UiPath. Alle Rechte vorbehalten