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 / Fail to set drop down ...
Power Automate
Answered

Fail to set drop down value if there is a confirm message

(0) ShareShare
ReportReport
Posted on by 13

When I try to select the drop down with power automatic, an alert will prompt and hold the process. Don't know how to click the "OK" button.

HAAHAA_0-1638607638145.png

 

 

https://jonas678.github.io/pa/submit_data.htm

 

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Try Send Keys {Enter}

  • HAAHAA Profile Picture
    13 on at

    I have tried to send key after select the value, but still fail. The power automate will hold on the process of selecting the drop down as it is still not complete the selection.

     

  • VJR Profile Picture
    7,635 on at

    Hi @HAAHAA 

     

    Which browser are you using?

     

    On Chrome and Edge I am getting the prompt as below on the top of the screen.

     

    VJR_0-1638676409745.png

     

    But in any case, after selection of dropdown, add a Wait stage and then use Sendkeys Enter.

    I have tried this on another website and it works fine.

     

  • HAAHAA Profile Picture
    13 on at

    I am using Edge and the process is shown below. It will hold on the dialog and step 2, cannot go to step 3 until I manually click "OK" in the Edge. Thanks.

     

    HAAHAA_0-1638689163504.png

    And finally it will show a runtime error:

    HAAHAA_0-1638689390530.png

     

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    just use send keys to fill out the entire form. Use tab to get between fields and when you get to the drop down, send {a} as many times as needed until alabama is selected.  This command won’t get hung up since it’s just 1 keystroke at a time. Then, if this still appears, you will be able to send {enter}. Good luck!

  • Zave Profile Picture
    88 on at

    Check under the Advanced section of the action, there is an option for what to do if there is a popup:

    Zave_0-1638693484804.png

    which by default is set to "Do nothing". Try selecting a different option.

     

    Edit: It seems that this doesn't work on the specific website. But you could go to the "On error" section of the action, and select the following:

    Zave_1-1638693956348.png

    and then use a "Send keys" action to press Enter.

     

  • VJR Profile Picture
    7,635 on at

    Hi @HAAHAA 

     

    I now understand your issue better.

    Check this out and it worked out for me on your website.

     

    VJR_0-1638699295817.png

     

     

     

    VJR_1-1638699350617.png

     

     

    Make sure to turn the webpage load off.

     

    When you run the flow, it will appear as if it is stuck on the popup, but after a few seconds the popup disappears and the dropdown value is selected.

     

     

     

     

     

     

  • Verified answer
    HAAHAA Profile Picture
    13 on at

    After all, I run a javascript before selecting the value, please find my solution as below, hope it can help for all of you. Thank you!

    HAAHAA_0-1638773339810.pngHAAHAA_1-1638773374197.png

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 237 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 194

Last 30 days Overall leaderboard