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 / Click Action Failing A...
Power Automate
Unanswered

Click Action Failing After Opening Pop-up

(1) ShareShare
ReportReport
Posted on by 22

I'm working in PAD to automate clicking a button on a webpage, which opens a pop-up. The pop-up requires the user to click OK before proceeding. After exhausting the options for how to respond to a pop-up ("click OK", "do nothing", "close it"), I am still left with the click action failing despite me being able to tell the button was clicked. 

 

Is PAD not able to handle button clicks if the resulting pop-up window can't be resolved within the same action? I'm also not able to get these buttons to respond to "Click on image" actions, so I'm sort of at a loss on how to proceed.

I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @jsteele64289 Try Send keys action >  Insert special keys and send {Return} key. Do not forget to make sure the browser window (pop-up) is focused.  Might work with the Pop-Up...

  • jsteele64289 Profile Picture
    22 on at

    Interesting turn of events:

     

    The pop-up in question was actually a modal dialog box and it seems Power Automate couldn't recognize that the button was clicked. I had to set up error handling to Continue Flow Run on error, before I could deliver a click or a Return key to the dialog box.

     

    Hope this saves someone else some time!

  • SynergiPartners Profile Picture
    30 on at

    I'm having the same issue. When PAD clicks "Delete All," a pop-up dialog window is displayed that shows a question with two buttons--OK and Cancel. I chose the options, "wait for web page to load" and "if a pop-up dialog appears, do nothing." Nothing seems to be working. I've tried all options as well and even tried the Send Keys option, but it still errors on the Press Button on Web Page action. Any ideas? Thank you!

  • AC-15051515-0 Profile Picture
    19 on at

    I have the same issue. I couldn't get pass this pop up. Send Key doesn't work because, it doesn't move to the next step for a Send Key to work. I have tried "Do nothing", "Close it", "Press a button", non of it worked or turning off ""Wait for page to load". None of it work.

    JKirby_0-1644862113932.png

     

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Does PAD error out when this happens?  Of PAD errors out, you could then say, On Error, go to subflow and have a subflow that is just send keys {Enter}

  • SynergiPartners Profile Picture
    30 on at

    You're a total genius! Thank you so much! 🙂

  • AC-15051515-0 Profile Picture
    19 on at

    Thanks. I used Wait for text on screen (OCR) and it worked.

  • jsteele64289 Profile Picture
    22 on at

    Thanks, guys, for continuing to come up with solutions for this!

  • SumeshMS Profile Picture
    2 on at

    Hi Michael,

    I have a model pop-up where I need to drag and drop certain elements.

    Initially, I used the recording to identify fields where drag and drop events are not captured.

    PAD is not identifying elements inside the model pop up.

    Moreover is there is a way in PAD to validate the selector .  I have even tried with customised CSS locator which also ended in vain. Could you please help me on this

    issue.PNG

  • MattJimison Profile Picture
    579 Most Valuable Professional on at

    I know this post has been out here for a few months but I ran into the same situation and found a simpler resolution to it. The error handling solution works but the issue is that it adds quite a bit of time to the flow while its trying to click the link, before it eventually determines the activity has failed.

     

    The quick fix is to change it to:

     

    If a pop-up dialog appears: Press a button

    Dialog button to press: Ok

     

    Yes, that's right, you need to type "Ok" instead of leaving the default "OK" value. The upper-case K is what causes the default behavior to fail. When you change it, it works. 😀

     

    dialog-close.png

     


    Find this post helpful? Please mark it as the solution and/or provide kudos so that it will help others in the future.

    Cheers,
    Matt

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 632

#2
Haque Profile Picture

Haque 458

#3
Valantis Profile Picture

Valantis 357

Last 30 days Overall leaderboard