web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to capture UI elem...
Power Automate
Unanswered

How to capture UI element picker Programmatically with out Manually hovering the element

(0) ShareShare
ReportReport
Posted on by 4

In desktop power automate we have UI element picker thru which using ctrl+click we can capture elements  by manually moving hover to elements, is this can be achieved programmatically by c# with out manual intervention .

 

for ex - 1 ) i am launching chrome  

             2) Click on Web UI element 

             3) capturing using Ctrl+Click  ( this step how to perform Programatically)

  • kinuasa Profile Picture
    801 Most Valuable Professional on at

    In short, do you want to add UI elements without using the UI element picker?
    If so, you can copy code for flow as follows and paste it in the designer to include and add the UI elements.

     

    WebAutomation.LaunchChrome.LaunchChrome Url: $'''https://rpachallenge.com/''' WindowState: WebAutomation.BrowserWindowState.Normal ClearCache: False ClearCookies: False WaitForPageToLoadTimeout: 60 Timeout: 60 BrowserInstance=> Browser
    DISABLE WebAutomation.PopulateTextField.PopulateTextFieldUsePhysicalKeyboard BrowserInstance: Browser Control: appmask['WebPage']['PhoneNumber'] Text: 123456 Mode: WebAutomation.PopulateTextMode.Replace UnfocusAfterPopulate: True WaitForPageToLoadTimeout: 60
    
    # [ControlRepository][PowerAutomateDesktop]
    
    {
     "ControlRepositorySymbols": [
     {
     "IgnoreImagesOnSerialization": false,
     "Repository": "{\r\n\"Screens\": [\r\n{\r\n\"Controls\": [\r\n{\r\n\"AutomationProtocol\": \"uia3\",\r\n\"ScreenShot\": null,\r\n\"ElementTypeName\": \"Inputtext\",\r\n\"InstanceId\": null,\r\n\"Name\": \"PhoneNumber\",\r\n\"SelectorCount\": 1,\r\n\"Selectors\": [\r\n{\r\n\"CustomSelector\": \"input[ng-reflect-name=\\\"labelPhone\\\"]\",\r\n\"Elements\": [],\r\n\"Ignore\": false,\r\n\"IsCustom\": true,\r\n\"IsWindowsInstance\": false,\r\n\"Name\": \"DefaultSelector\",\r\n\"Properties\": []\r\n}\r\n],\r\n\"Tag\": null,\r\n\"ScreenshotPath\": null\r\n}\r\n],\r\n\"ScreenShot\": null,\r\n\"ElementTypeName\": \"WebPage\",\r\n\"InstanceId\": null,\r\n\"Name\": \"WebPage\",\r\n\"SelectorCount\": 1,\r\n\"Selectors\": [\r\n{\r\n\"CustomSelector\": \":desktop > domcontainer\",\r\n\"Elements\": [],\r\n\"Ignore\": false,\r\n\"IsCustom\": true,\r\n\"IsWindowsInstance\": false,\r\n\"Name\": \"DefaultSelector\",\r\n\"Properties\": []\r\n}\r\n],\r\n\"Tag\": null,\r\n\"ScreenshotPath\": null\r\n}\r\n],\r\n\"Version\": 1\r\n}",
     "ImportMetadata": {
     "DisplayName": "LocalComputer",
     "ConnectionString": "",
     "Type": "Local",
     "DesktopType": "local"
     },
     "Name": "appmask"
     }
     ],
     "ImageRepositorySymbol": {
     "Repository": "{\r\n \"Folders\": [],\r\n \"Images\": [],\r\n \"Version\": 1\r\n}",
     "ImportMetadata": {},
     "Name": "imgrepo"
     },
     "ConnectionReferences": []
    }

     

    Or do you want to change the UI elements dynamically?
    If so, you can use variables in the custom selector.

     

  • Rajanikanth Profile Picture
    4 on at

    @kinuasa  where to paste the code in designer , i dont see any code paste option.

    can you help where to paste.

     

  • kinuasa Profile Picture
    801 Most Valuable Professional on at

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 259 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 227 Super User 2026 Season 2

#3
Valantis Profile Picture

Valantis 134 Super User 2026 Season 2

Last 30 days Overall leaderboard