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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Click UI Element when ...
Power Automate
Unanswered

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

(0) ShareShare
ReportReport
Posted on 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

I have the same question (0)
  • Deenuji_Loganathan_ Profile Picture
    6,250 Super User 2025 Season 2 on at

    @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

     

     

  • Kingston86 Profile Picture
    36 on at

    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

  • Kingston86 Profile Picture
    36 on at

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

     

    Kind Regards,

    Chris

  • Verified answer
    Deenuji_Loganathan_ Profile Picture
    6,250 Super User 2025 Season 2 on at

    @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 at

    Hey Deenuji,

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

    Kind Regards,
    Chris

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard