Hi,
I have built in PAD flow to rewrite calendar schedule from excel file to shared calendar.
Every second opening of new event windows PAD throws "Click failed (failed to get UI element)" 😥
No change in window name, have not found any explanation of this problem.
Have tried to substitute one step with image recognition but it seems that every time second event windows is opened PAD is not able to use UI element actions...
Any idea what might be the cause?
ERROR
Microsoft.Flow.RPA.Desktop.Modules.SDK.ActionException: Click failed (failed to get UI element) ---> Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Common.Exceptions.ElementNotFoundException: Exception of type 'Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Common.Exceptions.ElementNotFoundException' was thrown.
at Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Common.AutomationRuntimes.UIAutomationRuntimeBase.RetractElement(IntPtr windowHandle, String selector)
at Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Common.AutomationRuntimes.UIAutomationRuntimeBase.ClickElementInWindow(IntPtr windowHandle, String selector, MouseClickTypeEnum clickType, RectangleEdgePointEnum elementRectangleEdgePoint, Int32 offsetX, Int32 offsetY)
at Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Common.Proxy.LocalAutomationRuntime.ClickElementInWindow(String windowSelector, String controlSelector, Int32 offsetX, Int32 offsetY, Int32 clickType, Int32 elementRectangleSubsector, Int32 automationImpl)
at Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Actions.ClickElementInWindow.<>c__DisplayClass21_0.<Execute>b__0(IAutomationRuntime r)
at Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Common.UIAutomationActionBase.PerformAutomation(Action`1 action, UIControl control)
at Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Actions.ClickElementInWindow.Execute(ActionContext context)
--- End of inner exception stack trace ---
at Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Actions.ClickElementInWindow.Execute(ActionContext context)
at Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)
OUTLOOK VERSION: Microsoft® Outlook® for Microsoft 365 MSO (Version 2210 Build 16.0.15726.20000) 64-bit
PAD VERSION: 2.23.114.22217