Subscribe

UiPath Studio

The UiPath Studio Guide

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

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.
411
  1. In the Properties panel, click the Ellipsis image alt text button next to the Selector field. The Selector Editor window is displayed.
609
  1. Open any .txt file with Notepad. Note that the window title is partially different than the one at step 1.
  2. 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.
416
  1. Click OK. The Selector Editor window and the selector are updated with a wildcard.
609

Updated 3 years ago


Selectors with Wildcards


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.