I need to run a daily flow in Power Automate Desktop on a virtual machine, where basically this flow will open a web page and collect information from a specific site.
The real problem is that when this flow in Power Automate Web runs, the following error is shown:
Problem while executing action 'Click'. Click link on web page failed.
Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.ActionException: Click link on web page failed. ---> System.Exception: Some simulated input commands were not sent successfully. The most common reason for this happening are the security features of Windows including User Interface Privacy Isolation (UIPI). Your application can only send commands to applications of the same or lower elevation. Similarly certain commands are restricted to Accessibility/UIAutomation applications. Refer to the project home page and the code samples for more information.
at WindowsInput.WindowsInputMessageDispatcher.DispatchInput(INPUT[] inputs)
at WindowsInput.MouseSimulator.MoveMouseToPositionOnVirtualDesktop(Double absoluteX, Double absoluteY)
at Microsoft.Flow.RPA.Desktop.UIAutomation.DesktopCore.InputSimulator.MouseSimulatorProxyBase.MoveMouseToPosition(Point point)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Common.Proxy.LocalWebAutomationRuntime.PerformClickAtElement(IWebAutomationBrowser browser, String cssSelectorForElement, ClickType clickType, RectangleEdgePoint mousePositionRelativeToElement, Int32 offsetX, Int32 offsetY)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Common.Proxy.LocalWebAutomationRuntime.<>c__DisplayClass41_0.<ClickLinkOnWebPageMouse>b__0(Boolean _, IWebAutomationBrowser browser)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Common.Proxy.LocalWebAutomationRuntime.<>c__DisplayClass18_0`1.<ExecuteWebAutomationActionCore>b__0()
at Microsoft.Flow.RPA.Desktop.UIAutomation.Core.Utilities.Clock.Execute[T](TimeSpan timeout, TimeSpan period, Func`1 action, Func`2 successCondition)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Common.Proxy.LocalWebAutomationRuntime.ExecuteWebAutomationActionCore[T](IWebAutomationBrowser automationBrowser, WebAutomationOptions webAutomationOptions, Func`3 coreFunction, Predicate`1 successCondition)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Common.Proxy.LocalWebAutomationRuntime.ExecuteWebAutomationAction[T](IWebAutomationBrowser automationBrowser, WebAutomationOptions webAutomationOptions, Func`3 coreFunction)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Common.Proxy.LocalWebAutomationRuntime.ClickLinkOnWebPageMouse(WebBrowserInfo webBrowserInfo, String cssSelectorForLinkElement, WebAutomationOptions webAutomationOptions, ClickType clickType, RectangleEdgePoint mousePointRelativeToElement, Int32 offsetX, Int32 offsetY)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Common.Proxy.LocalWebAutomationRuntime.ClickLinkOnWebPage(WebBrowserInfo webBrowserInfo, String cssSelectorOfElementToClick, String dialogButtonToPress, Boolean waitForPageToLoad, TimeSpan waitForPageToLoadTimeout, Int32 courseOfActionIfDialogAppears, Boolean physicalMouseClick, ClickType clickType, RectangleEdgePoint mousePositionRelativeToElement, Int32 offsetX, Int32 offsetY)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Common.Proxy.WebAutomationRuntimeRouter.Invoke(MethodInfo targetMethod, Object[] args)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Reflection.DispatchProxyGenerator.Invoke(Object[] args)
at generatedProxy_3.ClickLinkOnWebPage(WebBrowserInfo , String , String , Boolean , TimeSpan , Int32 , Boolean , ClickType , RectangleEdgePoint , Int32 , Int32 )
--- End of remote exception stack trace ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.Flow.RPA.Desktop.UIAutomation.Shared.Rpc.RpcDispatchProxy`1.GetRemoteResultOrThrow(ISerializer serializer, RemoteMethodCallResponse response, Type expectedResultType)
at Microsoft.Flow.RPA.Desktop.UIAutomation.Shared.Rpc.RpcDispatchProxy`1.Invoke(MethodInfo targetMethod, Object[] args)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Reflection.DispatchProxyGenerator.Invoke(Object[] args)
at generatedProxy_1.ClickLinkOnWebPage(WebBrowserInfo , String , String , Boolean , TimeSpan , Int32 , Boolean , ClickType , RectangleEdgePoint , Int32 , Int32 )
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.WebAutomationRuntimeServiceProxy.<>c__DisplayClass7_0.<ClickLinkOnWebPage>b__0(IWebAutomationRuntime s)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.WebAutomationRuntimeServiceProxy.<>c__DisplayClass34_0.<ExecuteSafe>b__0(IWebAutomationRuntime s)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.WebAutomationRuntimeServiceProxy.ExecuteSafe[T](Func`2 action, TimeSpan timeout)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.WebAutomationRuntimeServiceProxy.ExecuteSafe(Action`1 action, TimeSpan timeout)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.WebAutomationRuntimeServiceProxy.ClickLinkOnWebPage(WebBrowserInfo webBrowserInfo, String cssSelectorOfElementToClick, String dialogButtonToPress, Boolean waitForPageToLoad, TimeSpan waitForPageToLoadTimeout, Int32 courseOfActionIfDialogAppears, Boolean physicalMouseClick, ClickType clickType, RectangleEdgePoint mousePositionRelativeToElement, Int32 offsetX, Int32 offsetY)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.ClickBase.<Execute>b__37_0(IWebAutomationRuntime s)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.WebAutomationActionBase.<>c__DisplayClass5_0.<PerformWebAutomationWithLogging>b__0(IWebAutomationRuntime s)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.WebAutomationActionBase.PerformWebAutomationWithLogging[T](Func`2 action, WebAutomationRuntimeLogData requestData, Func`3 resultData)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.ClickBase.Execute(ActionContext context)
--- End of inner exception stack trace ---
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.ClickBase.Execute(ActionContext context)
at Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)
Alguém poderia me ajudar com esse erro?
Hi @guinew21
After looking provided information, I feel that you are opening a website and In that you are trying to click on a link which is getting failed. If this is the one, then you could probably check below things
If you find this reply helpful, please consider giving it a LIKE AND
If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION
Thanks,
Srini
Michael E. Gernaey
497
Super User 2025 Season 2
David_MA
436
Super User 2025 Season 2
Riyaz_riz11
244
Super User 2025 Season 2