Exception Type: SelectorNotFoundException Error Message


I am currently working on Infopath forms. I have tried capture some data using gettext functionality of the tool.
Now, every time the session ends for Infopath, the “Selector” values get updated. Because of which, I am unable to capture the required values.
I have tried normalizing the Selector values by making them a regular expression. But it doesn’t work.

Please let me know the workaround for the same.

Error SelectorNotFoundsException
Intermittently encountering SelectorNotFoundException
How to open file from specified folder?
Automation in Citrix
Selector error when calling screen more than once in for each row

Hey @nesachdeva

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

The solution to this problem is to:
• build better selectors

  • Use Wild Card operators.

To see the better and dynamic attributes compare the selectors and make dynamic them using wildcard operators and identify reliable selectors using UIExplorer.

Selectors attributes part contains all the attributes of an object. Not all can be added or removed from your selector string, because not all of them are useful for identifying a certain object.

The most important thing when choosing selectors is to pick those which always have a constant value. If the value of an attribute changes, then the selector will not be able to correctly identify the element.

Attributes may change their values from time to time when the application’s UI changes. When this happens, part of the dynamic attributes often remain unchanged and we somehow have to specify the variable parts. This can be done using wildcards:

    • star means zero or more characters can be there. Example: title=’* - Notepad’.
  1. ? question mark means exactly one character. Example: title=‘Expl?rer’.

A direct consequence when using wildcards is the increased probability of there being more and more nodes matching the Selector.

for more info follow this link:


Working on selectors and how to use a dynamic selector
Selector not found
Click image/Click not working in Chrome browser using uipath
How to save Generated PDF files
Take screen shot is not working getting selector error
Loop fail