UiPath Selectors

The selector is a string of characters (VB expression) used to identify objects on the screen. The selector is one of the properties of UiPath activities and has an XML format. All the activities in UiPath Studio related to graphical elements that have the selector property.

Let us create a new sequence called UiPath_Selctor_Example

uipath-selector-sequence-rpa-uipath

Add Open Browser activity inside the sequence and then add the google URL
add-googl-url-rpa-uipath

Next, add Type Into activity inside the Do Container of the Open Browser and indicate element on the website. Enter the Text which you wanted to search on the google search page.
type-into-activity-rpa-uipath

When we click on the Google Search area the UiPath has selected the indicated area, this is because of Selector. Click on the Type Into Activity and in the Properties Pane, you can find Selector under Target section.
selector-property-under-properties-pane-uipath

Once you click on the three dots in the selector as shown in the above image, you will find the details of the selector which is going to identify the indicated element as shown below.
select-editor-rpa-uipath

There are some scenarios where the Validate button is red, then the UiPath is not able to identify the indicate element with the help of the selector.

Now let us see how the selector will work for clicking a button. Add the Click Activity inside the sequence.
add-click-activity-uipath-rpaa

Indicate the element on the website.
click-on-google-search-rpa-uipath

Open the Selector which is present under the Input section in the properties pane by clicking on the Click Activity in the sequence. If you open the Selector you can see the selector details about the button.
sele tor-name-btnnk-rpa-uipath

In the case of advanced automation, you have to manipulate these selectors, Go to the google search page and right-click on the google search button and inspect the google search button, you will find the button name as btnk.
inspect-google-search-button-rpa-uipath
inspecting-google-search-buuton-rpa-uipath

In the case of Selenium, you need to enter this Id or Name should be entered in coding, whereas in UiPath, automatically consider this Id and identifies the path.

RPA UiPath Studio User Interface

UiPath Explorer with Selector

A UiPath Explorer is an advanced tool that enables you to create a custom selector for a specific UI element. UI explorer is available only if the UiPath.UIAutomation.Activities package is installed as a dependency to the project.

You can see UiPath Explorer in the Design Tab
ui-explorer-uipath-rpa

And if you open the Tools on the Homepage you will find the UiPath Explorer.
ui-explorer-in-tools-rpa-uipath

The UiPath Explorer gives an opportunity to explore and inspect, how it interfaces and how it identifies the applications and how it identifies the web pages.

  • Open the UiPath Explorer under the Tools tab
  • And open the Google home page(www.google.com) parallelly
  • Click on the Indicate Element inside the UiPath Explorer

click-on-indicate-element-rpa-uipath

  • And indicate the Google Search Box on the google page, you will find that the UI Explorer has parsed the whole google page, and Uniquely identifies the google page.
    uipath-explorer-page-rpa-uipath
  • If you click on the Highlight button in the UI Explorer, the explorer will be able to show which area has been selected.
    highlight-button-in-ui-explorer
    highlighted-on-google-page-rpa-uipath
  • The UI Explorer will select some properties under the selected items. These properties help to identify the indicated element in the web page.
    selected-items-rpa-uipath
0 results
Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions