Difference between "descriptors" and "selectors"?

Trying to the UiPath jargon, specifically ‘descriptors’ vs ‘selectors’. Is there a difference? They seem to be used interchangeably.

Selectors are used for automation to target specific UI elements, while descriptors are part of the Studio’s UI Explorer feature, providing additional metadata and information about UI elements for easier management and understanding within the development environment.
Descriptors are metadata or descriptions associated with UI elements in the User Interface Explorer. They provide additional information about the elements, such as their type, properties, actions, and selectors.

  1. Selectors:
  • In UiPath, a selector is a mechanism used to identify a UI element on the screen. It’s a string of XML that contains information about the element’s properties, such as its name, type, position, and more.
  • Selectors are used by activities in UiPath to interact with specific UI elements in applications.
  • Selectors are essential for automating processes as they allow robots to identify and manipulate UI elements accurately.
  1. Descriptors:
  • While “descriptors” is not a term commonly used in UiPath, it may refer to the attributes or properties of an element within the selector.
  • Descriptors could include properties such as id, name, class, tag, etc., which are used to uniquely identify the UI element.
  • Descriptors provide details about the element within the selector, helping to refine the selection process and make it more precise.

In summary, selectors are the overall XML strings used to identify UI elements, while descriptors could refer to the specific properties or attributes within those selectors that help identify the element. They are interconnected concepts within the context of UiPath automation.

In UiPath, “selectors” and “descriptors” are both used to identify UI elements for automation, but they serve different purposes and are used in different contexts:

In summary, selectors are the standard way to identify UI elements, while descriptors provide additional context or details to improve the accuracy of element identification, especially in more complex scenarios.

1 Like

In the context of UiPath, “selector” and “handle” are often used interchangeably, denoting a unique path to a UI element. However, strictly speaking, a “selector” usually refers to a line of code containing information about the properties of an element, such as the element’s id, class, or path. While a “handle” can include not only a selector, but also other parameters that describe the element, such as its type, location, and actions that can be performed on that element. Thus, a “descriptor” can be a broader concept that includes information about the element as a whole, while a “selector” focuses on identifying it.

Hey @Terry_Marr ,

Selectors: Selectors are expressions that help UiPath locate UI elements on the screen. They are usually based on attributes like IDs, class names, or other properties of the UI elements. Selectors are crucial for activities like Click, Type Into, and Get Text, as they tell the robot where to interact with the UI.

Descriptors: Descriptors are used in UiPath’s Document Understanding framework. They provide a structured way to define and understand documents, such as invoices or receipts. Descriptors help the robot extract specific data from documents by defining the layout, fields, and relationships within the document.

Hope this helps…Happy Automating.!!

Please mark the response of your query which helps you out as solution.

Cheers.

hi @Terry_Marr also to add check out this screenshot from uip academy.

cheers

hello @Terry_Marr,

  1. Descriptors:
  • Descriptors in UiPath usually refer to properties or attributes of UI elements or activities. These properties describe various characteristics or attributes of an object or activity within an automation workflow.
  • Descriptors can include attributes such as name, type, position, visibility, and more, depending on the type of element or activity being described.
  • Descriptors are used to identify and interact with UI elements during automation, allowing the robot to simulate human interactions with applications.
  1. Selectors:
  • Selectors are a specific type of descriptor in UiPath that provide a way to uniquely identify UI elements within an application or webpage.
  • Selectors are XML-based expressions that define the unique characteristics of a UI element, allowing the robot to locate and interact with it accurately.
  • Selectors typically include information such as the element’s type, ID, name, position, and other attributes that make it distinguishable from other elements on the screen.
  • Selectors are crucial for automating processes accurately, as they enable the robot to reliably locate and interact with specific UI elements even if their positions or appearances change.

Regards,
Dheerendra Vishwakarma

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.