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

Community site session details

Session Id : HlJC4VfctfHRYa7yVx08G6
Power Automate - Power Automate Desktop
Answered

Click UI Element when there are multiple in the same window - Power Automate Desktop

Like (0) ShareShare
ReportReport
Posted on 7 Mar 2024 00:11:09 by 36

Evening All,

Me again. I am stuck at another point in my ongoing flow. I am looking to click an element within a window and then fill it with data. In this instance it is two separate date fields within a window that unfortunately look almost identical. I recorded myself clicking on each section of the data and filling in values manually. I then went back on that recording and switched out my manual key entries with variables so that the dates can be different for each run of the flow. The issue I am having is that the application correctly identifies and fills the first date box (outlined in Red below) with the correct information, what then happens is that when it should move onto the next date field (outlined in green) and fill in the dates there, instead of detecting this element it seems to detect the first field again and overwrite the information it has entered first. 

This is the window I am trying to populate with date field 1 in red and date field 2 in green:
Window_1.png

 

Within power automate I can see two images for the elements that have been taken in order to locate the item within the GUI and although it is clear that the image around the main date element is different in each picture (as can be seen below) because I think it is only focusing on the section within the red outline it identifies the first date element on both instances for data input. 

Pane1.pngPane2.png

 

I did do an inspect element selection to see if there was anything I could get from the date fields to identify them from each other and they do have unique ID numbers. Now I am not sure if this is an ID that Power Automate has assigned them or an ID number it is somehow getting from the open application, either way I am not sure this would help me though as if this is ID numbers for my particular application on my machine. If I were to run this flow on another machine even with the same application installed it is unlikely to have the same element ID I would assume. Especially as this particular application (MetaTrader 5) is distributed by a number of companies who white label it slightly and I am not sure if in doing so would make it a unique application with unique element ID's.

This is the flow below as it is, maybe I am approaching this sort of task in the wrong way. If someone could shed some light onto a method that may work it would be greatly appreciated.

App_Flow2.png

Kind Regards,
Chris

  • Kingston86 Profile Picture
    36 on 08 Mar 2024 at 17:45:48
    Re: Click UI Element when there are multiple in the same window - Power Automate Desktop

    Hey Deenuji,

    That seems to have solved the problem. Thank you once again for you assistance with this issue.

    Kind Regards,
    Chris

  • Verified answer
    Deenuji_Loganathan_ Profile Picture
    6,204 Super User 2025 Season 2 on 08 Mar 2024 at 12:41:00
    Re: Click UI Element when there are multiple in the same window - Power Automate Desktop

    @Kingston86 

    Sorry for not get back to you on this!!
    I believe first calendar is working fine so we no need to touch that UI element selector.

    Try to uncheck the class name and click on the test button in the second selector and see whether its highlighting the right calendar element or not?

    Deenuji_1-1709901634028.png

     

    If again its not working then click on the green highlighted element and share one more screenshot.

     

  • Kingston86 Profile Picture
    36 on 08 Mar 2024 at 12:34:13
    Re: Click UI Element when there are multiple in the same window - Power Automate Desktop

    would anyone have any ideas on this issue and potentially a way i could get round this problem?

     

    Kind Regards,

    Chris

  • Kingston86 Profile Picture
    36 on 07 Mar 2024 at 10:13:52
    Re: Click UI Element when there are multiple in the same window - Power Automate Desktop

    Hi Deenuji, 

    Thank you for your response I have tried capturing the UI Elements again both via a recording and manually using the 'Add UI Element' button in the UI elements panel. Neither helped unfortunately. When I go into the properties of the element itself to change / look at the ID. I get the following window:

    It is as if the Pane Strategy Tester is the parent image and then within that it looks for the Pane 'SysDateTimePick32' within that. Which element would I change or enable the ID for? 

    Properties2.pngProperties.png

    Also if I enable or change the ID how do I then alter my flow to address this element by its ID rather than it being called as it currently is which seems to just be a drop down selection box to pic the trigger image within this window.
    UIElement Window.png

    Thank you again for your assistance.

    Kind Regards,
    Chris

  • Deenuji_Loganathan_ Profile Picture
    6,204 Super User 2025 Season 2 on 07 Mar 2024 at 05:56:04
    Re: Click UI Element when there are multiple in the same window - Power Automate Desktop

    @Kingston86 

    Hey Chris,

    Attempt to capture the second calendar once more and ensure that it is accurately captured on the second calendar with accompanying images.

    If this approach fails to yield the desired results, consider adjusting the element ID as outlined below.

    Deenuji_0-1709790912386.png

     

     

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete