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 / UI Click keeps repeati...
Power Automate
Suggested Answer

UI Click keeps repeating even though successful

(2) ShareShare
ReportReport
Posted on by 5
Hi All,
 
I am running a PA Desktop flow to run through steps in a older Windows application.  The problem I have is that when a button in clicked in the application an 'overlay' window appears (to continue the next steps) but as the original button remains in the background window, PA continues to click it even though the original click was successful - even after multiple following steps have been completed, PA continues to try to click the original button in the background, meaning the windows are continuously switching focus and causing the flow to fail.
 
Is there a way to set the amount of times the button is clicked or a timeout on that particular click?
 
So far I have tried:
1. Adding a variable 'button clicked' within a IF loop to change the variable upon click - doesn't move on from the Click UI element so remains cycling back to original action
2. Wait for 'overlay' window to appear - again keeps trying to click the original, even though overlay windows is present
 
Any advice would be really appreciated..
I have the same question (0)
  • Suggested answer
    eetuRobo Profile Picture
    4,204 Super User 2025 Season 2 on at
    Seems like that "Click UI element in window" -action has On error logic enabled.


    Check if you disable that or change the retry policy to none if that solves it. I'm thinking that maybe the action has Retry policy and for some reason the action thinks it failed the click on that element and then it does the retry.

    If that doesn't fix it then I would try with "Press button in window" -action. That action might work better since the element is a button element.
  • Riyaz_riz11 Profile Picture
    3,891 Super User 2025 Season 2 on at
    Hi @MK-20051330-0,

    Use wait for window to wait the page to appear, if its still fails to use send keys by selecting ui element.
     
    Note: Use Set Window state or Focus Window

    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.
    Regards,
    Riyaz

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 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard