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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Facing error while pre...
Power Automate
Unanswered

Facing error while pressing button from the web action the error message is "failed to get save button (failed to get window)" in power automate desktop version

(0) ShareShare
ReportReport
Posted on by 2

I am trying to automate the steps to download files from a web portal , In the documents we need to click on an print icon , then it will open file in another tab and there we need to click on ctrl+ p and then save as pdf(will be there automatically) and then we need to click on save button. 

So, the flow will run till ctrl+ p , then after that we got the error with message that "failed to get save button (failed to get window).

Can anyone have any solution for this issue.

Thank you in advance for your help.

 

I have the same question (0)
  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Can you provide more details on your existing flow? Some screenshots of what you are trying to do and the actions you have used? It seems to me like you might be trying to press a web page button with an action for pressing local application buttons or vice versa. But it's not very clear from your description. Screenshots would help.

  • RITISH Profile Picture
    2 on at

    I am writing steps here , which we are following in flow:-

     

    Launching Microsoft edge -> populating text fields for username and password-> Press login button on web page->  then clicking link for received documents -> clicking link for search button -> then clicking link for print icon in the documents section -> that file opens up in another tab -> then using send keys action , ctrl+p in foreground window -> then using pressing the save button in window action to save the file .

     

    Here at pressing the save button step, it gets failed with error message "failed to get save button (failed to get window).

  • VishnuReddy1997 Profile Picture
    2,656 Super User 2025 Season 2 on at

    Hi @RITISH ,

     

    As the save buttton is in new tab it is not able to focus that or find that, so please use focus window before the save button click. the action look like the in the below shown image.

    VishnuReddy1997_0-1718344323412.png

     

    Click on select window and then select the second tab.

     

    (Note:- if you got your solution you can mark as solution and gives kudos)


    Thanks & Regards

    Vishnu Reddy

  • eetuRobo Profile Picture
    4,204 Super User 2025 Season 2 on at

    Does it open Windows file explorer -window like so:

     

    eetuRobo_2-1718345239507.png

     

     

    Then you should change pressing the save button to UI action instead of browser action. Also retake the element since that UI window and not browser window.

    Check the UI element by testing it when the save button is visible in your screen.

    eetuRobo_3-1718345557349.png

    Since it gives error  "failed to get save button (failed to get window)" I would check that the window element is correct.

    eetuRobo_4-1718345678318.png


    So open the window(parent) element and see if it has some attributes in it that are dynamic. So maybe there is for example URL attribute that is little bit different each run.

     

     

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
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard