web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Power Automate Desktop
Answered

Regarding control of modal dialogs.

(0) ShareShare
ReportReport
Posted on by

Hi, 

 

Please let me confirm the specifications.

Is it possible to press the OK button when a modal dialog or modal window is displayed at the timing of a web system in Power Automate Desktop?

 

Torusan_0-1719538408980.png

--

Kind Regards,
Toru

Categories:
I have the same question (0)
  • Deenuji_Loganathan_ Profile Picture
    6,208 Super User 2025 Season 2 on at
    Re: Regarding control of modal dialogs.

    @Toru-san 

    Yes, that is possible. If the popup appears during any populate text action, you can use the default handler.

     

    Deenuji_0-1719542513342.png

     

    If that doesn't work, you can first check if the popup appears using the action below:

     

    Deenuji_1-1719542625877.png

     

    then you can use "click link on the web page" action.

    Deenuji_2-1719542661514.png

     

    If nothing works you can also consider "Send keys" action.

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

     

  • Toru-san Profile Picture
    on at
    Re: Regarding control of modal dialogs.

    Hi Deenuji-san,

     

    Thank you for your cooperation again.

     

    I'm sorry if I'm not good at explaining.
    This time I'm investigating whether it is possible to check whether a dialog box with no corresponding data appears when clicking the inquiry button.

    I was able to obtain the elements of all three of the information you told me about, but I was unable to obtain the content (text).

    I was able to click on the dialog box by sending a key, but that did not achieve my original purpose.

    I will try to investigate other methods on my own. Thanks.

     

    --

    Kind Regards,
    Toru

  • Deenuji_Loganathan_ Profile Picture
    6,208 Super User 2025 Season 2 on at
    Re: Regarding control of modal dialogs.

    @Toru-san 

     

    You can also try with below action where you capture your UI element where you want to extract your text(it may also work for popup dialog). Then once you extract the text you can perform your desired operation.

     

    Deenuji_0-1719561057470.jpeg

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

     

  • Toru-san Profile Picture
    on at
    Re: Regarding control of modal dialogs.

    Hi Deenuji-san,

     

    Thank you for your reply.

    I was unable to obtain the modal dialog element with the action you told me about. We are currently continuing our investigation, but in the details of each action, it says that "If a pop-up dialog is displayed" is sometimes clickable and sometimes not, so it seems that the modal dialog can be clicked under certain conditions.

     

    I will continue my investigation a little more.

     

    --

    Kind Regards,
    Toru

  • Deenuji_Loganathan_ Profile Picture
    6,208 Super User 2025 Season 2 on at
    Re: Regarding control of modal dialogs.

    Hi @Toru-san 

     

    Sure thing!! You may also use JavaScript function to detect the any specific element or dialog and based on the output you can execute the remaining stuffs.

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

  • Verified answer
    Toru-san Profile Picture
    on at
    Re: Regarding control of modal dialogs.

    Hi Deenuji-san,

     

    Thank you for your reply.

     

    I tried various things this time, but decided that it was not possible to retrieve elements and process them from the dialog of the in-house web system, so I achieved the same thing by pressing OK when the dialog in the action's detailed settings is displayed and retrieving the elements of the items in the html.
    Thank you for your advice.

     

    --

    Kind Regards,
    Toru

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 597 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 373 Moderator

#3
chiaraalina Profile Picture

chiaraalina 262

Last 30 days Overall leaderboard