Skip to main content

Notifications

Power Automate - General Discussion
Unanswered

Failed to get window - within unattended - Admin Privileges

(0) ShareShare
ReportReport
Posted on by 2

I'm currently running into the error on a virtual machine both in 'Attended' and 'Unattended': 'Problem while executing action 'Click'. Click failed (failed to get window).

 

Within attended mode I was able to solve this by opening 'Power Automate' application as Administrator. However, I don't quite know how I can ensure Power Automate to run as Administrator while in 'Unattended'. Could someone please guide me how to set Power Autuomate as an administrator when running flows in 'Unattended'? 

 

 

  • DataComet Profile Picture
    DataComet 2 on at
    Re: Failed to get window - within unattended - Admin Privileges

    @ManishSolanki I've tried that in generalizing the hardcoded values and switching conditions to contains before. Even after that modification, it still works on 'Attended' but fails on 'Unattended'. Some additional information on this: the Click is failing when I try and click on any element on the Chrome Browser/websites. 

     

    It leads me to believe it's more of an access issue, I have the same error when I try running Power Automate 'Attended' when I don't run the application as Admin. It only gets resolved when running Power Automate as Admin, I guess its because the application can only read elements on the browser when there is sufficient permissions.

     

    I don't quite know how I can ensure Power Automate can run as an admin when in 'Unattended' mode.

  • ManishSolanki Profile Picture
    ManishSolanki 15,075 on at
    Re: Failed to get window - within unattended - Admin Privileges

    Hi @DataComet 

     

    Pls check if any selector contains hardcoded values for window title, if yes pls replace equals to condition with contains. If you are using browser automation, then the title of window may get different name due to profile or running with different account (administrator). If that is the case, change the condition to include contains clause with constant value to compare.

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

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,666

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,996

Leaderboard