studio
2022.4
false
UiPath logo, featuring letters U and I in white

Studio User Guide

Last updated Dec 19, 2024

Selectors With Wildcards

Wildcards are symbols that enable you to replace zero or multiple characters in a string. These can be quite useful when dealing with dynamically-changing attributes in a selector.

  • Asterisk (*) – replaces zero or more characters
  • Question mark (?) – replaces a single character
  • Asterisk AND Question mark (*?) - matches an attribute value with at least one character

Example of Generating a Selector With Wildcards in the Selector Editor Window

Part of the name of a Notepad window changes according to the .txt file you open with it. This is where a well-placed wildcard can really help. Do the following to generate it:

  1. Open an empty Notepad window. Note that the window title is Untitled – Notepad.
  2. In Studio, create a new sequence.
  3. Drag a Type Into activity to the Designer panel.
  4. Click Indicate on Screen and indicate the editable text field in Notepad. A selector is automatically generated and stored in the Selector field.


  5. In the Properties panel, click the Ellipsis docs image button next to the Selector field. The Selector Editor window is displayed.


  6. Open any .txt file with Notepad. Note that the window title is partially different than the one at step 1.
  7. In Studio, in the Selector Editor window, click Repair and indicate the editable text field in Notepad window opened at step 6. A dialog box indicating that the selector was updated is displayed.


  8. Click OK. The Selector Editor window and the selector are updated with a wildcard.


Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.