cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jsteele64289
Regular Visitor

Click Action Failing After Opening Pop-up

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.

10 REPLIES 10
MichaelBoruta
Resolver II
Resolver II

@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
Regular Visitor

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
Regular Visitor

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!

JKirby
Frequent Visitor

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

 

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
Regular Visitor

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

JKirby
Frequent Visitor

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

jsteele64289
Regular Visitor

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

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
Helper I
Helper I

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

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Top Solution Authors
Top Kudoed Authors
Users online (3,680)