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 Platform Community / Forums / Power Automate / UI automation - Form f...
Power Automate
Suggested Answer

UI automation - Form filling - Press button in window

(1) ShareShare
ReportReport
Posted on by 2
Good day,

I have workflow that simulates the extraction of reports from a third parties' website. The Flows have been running since January 2025 and have now started to encounter a very unique problem. They are run in a VM in Unattended mode, but the problem even happens in attended mode and on other machines. 
 
One of the file steps is to save the file as CSV from the websites (we use Edge), but on the click Save as button on the Edge dialog box, it's as if the flow can click the button but doesn't.
 
I have even made multiple Selectors to assist in getting the button info to click:
  • Default Selector > pane[Class="BrowserRootView"] > pane[Process="msedge"] > window[Class="RootView"][Name="Downloads"] > pane[Class="NonClientView"] > pane[Class="BubbleFrameView"] > pane[Class="DialogClientView"] > pane[Class="BubbleDialogDelegateView"] > document[Id="RootWebArea"] > tree > treeitem[Name*="${DownloadName}"] > button[Name="Save as"]
  • Default Selector 4 > pane[Class="BrowserRootView"][Name*="${Server}"] > pane[Class="Chrome_WidgetWin_1"] > window[Class="RootView"][Name="Downloads"] > pane[Class="NonClientView"] > pane[Class="BubbleFrameView"] > pane[Class="DialogClientView"] > pane[Class="BubbleDialogDelegateView"] > document[Id="RootWebArea"] > tree > treeitem[Name*="${DownloadName}"] > button[Name="Save as"]
  • Default Selector > pane[Class="BrowserRootView"][Process="msedge"] > pane[Process="msedge"] > window[Class="RootView"][Name="Downloads"] > pane[Class="NonClientView"] > pane[Class="BubbleFrameView"] > pane[Class="DialogClientView"] > pane[Class="BubbleDialogDelegateView"] > document[Id="RootWebArea"] > tree > treeitem[Name*="${DownloadName}"] > button[Name="Save as"]
  • AND a image as fallback.
But still failing at run time. 
 
And my Power Automate version on my machine is
And the VM is 
 
Any thoughts? 


 
I have the same question (0)
  • Suggested answer
    trice602 Profile Picture
    15,329 Super User 2025 Season 2 on at
    UI automation - Form filling - Press button in window
    Hi there!
     
    There's an issue seeing the images in this post and is temporary but will share a common workaround.
     
    If you absolutely cannot press the button in the UI, try using Send Keys {Tab} and tab to the button and use Send Keys {Space} which is the simulates pressing the button.
     
    There's a love/hate relationship in the community about the use of Send Keys.  My argument is it is a Microsoft function and works very well in cases when it is my only option.
     
    Here's an example:  I can't click the button but I can get the cursor a few positions before the button.  Send Keys {Tab]}{Tab}{Space}.
     
     
    I do have a few flows that have been using a variation of this for more than 3 years.
     

    ------------------------------------------------

     

     

    ⭐ If this was helpful, please like and check the box below "Does this answer your question" to help others find this too!

     

     

    Always glad to help! 💯💯💯💯💯

     

    Tom

     

    Follow me on LinkedIn - Thomas Rice, PMP | LinkedIn

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 497 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 477 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 242

Last 30 days Overall leaderboard