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 / 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..
flow.png
btn.png
I have the same question (0)
  • Suggested answer
    eetuRobo Profile Picture
    4,535 Super User 2026 Season 1 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
    4,150 Super User 2026 Season 1 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 816

#2
Valantis Profile Picture

Valantis 603

#3
Haque Profile Picture

Haque 566

Last 30 days Overall leaderboard