Skip to main content

Notifications

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:
  • Verified answer
    Toru-san Profile Picture
    Toru-san 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

  • Deenuji_Loganathan_ Profile Picture
    Deenuji_Loganathan_ 6,080 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 🚀

  • Toru-san Profile Picture
    Toru-san 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
    Deenuji_Loganathan_ 6,080 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
    Toru-san 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
    Deenuji_Loganathan_ 6,080 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 🚀

     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,445

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,741

Leaderboard