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'?
@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.
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