Articles → Uipath → Selectors In Uipath

Selectors In Uipath






Scenario




Picture showing the 2 notepad applications with different text
Click to Enlarge





Picture showing the type into activity for writing text in the notepad
Click to Enlarge






What Are Selectors?




  1. Click on the UI element and go to the properties window
  2. In the properties window, check the "Selector" attribute
  3. Picture showing the selector attribute in the property window
    Click to Enlarge

  4. Click on the "..." button to open the "Selector Editor"
  5. Picture showing the selector editor
    Click to Enlarge



How To Identify The Notepad Uniquely?




  1. Click on the "Open in UI Explorer" link on the "Selector Editor"
  2. Picture showing the Open in UI Explorer in the selector editor
    Click to Enlarge

  3. The "UI Explorer" window will open
  4. In the "Selected Items" window, check the checkbox "text"
  5. Picture showing unchecking the text attribute in the selector editor
    Click to Enlarge

  6. Save the changes and close the "UI Explorer"
  7. Save and run the bot

Output


Picture showing the output of adding text in notepad using the selector
Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Wednesday, January 27, 2021

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250