GDATASoftwareAG / robotframework-flaui

Windows user interface automation library for Robot-Framework. FlaUILibrary is a wrapper for the FlaUI automation library.
MIT License
58 stars 12 forks source link

uncatched exception in reliable clicks #187

Closed noubar closed 3 months ago

noubar commented 3 months ago

I am getting the following exception while i am using click opens or click closes So i will be building a try catch under these both keywords

ElementNotAvailableException: The target element corresponds to UI that is no longer available (for example, the parent window has closed). at MS.Internal.Automation.Misc.ThrowWin32ExceptionsIfError(Int32 errorCode) at MS.Internal.Automation.Misc.GetWindowLong(HWND hWnd, Int32 nIndex) at MS.Internal.Automation.HwndProxyElementProvider.IsWindowPatternWindow(HWND hwnd) at MS.Internal.Automation.HwndProxyElementProvider.System.Windows.Automation.Provider.IRawElementProviderSimple.GetPropertyValue(Int32 propertyId) at MS.Internal.Automation.UiaCoreApi.CheckError(Int32 hr) at System.Windows.Automation.AutomationElement.GetCurrentPropertyValue(AutomationProperty property, Boolean ignoreDefaultValue) at FlaUI.Core.FrameworkAutomationElementBase.TryGetPropertyValue[T](PropertyId property, T& value) at FlaUI.Core.AutomationElementXPathNavigator.get_LocalName() at MS.Internal.Xml.XPath.XPathAxisIterator.get_Matches() at MS.Internal.Xml.XPath.XPathChildIterator.MoveNext() at MS.Internal.Xml.XPath.ChildrenQuery.Advance() at MS.Internal.Xml.XPath.FilterQuery.Advance() at MS.Internal.Xml.XPath.ChildrenQuery.Advance() at MS.Internal.Xml.XPath.FilterQuery.Advance() at MS.Internal.Xml.XPath.ChildrenQuery.Advance() at MS.Internal.Xml.XPath.FilterQuery.Advance() at MS.Internal.Xml.XPath.ChildrenQuery.Advance() at MS.Internal.Xml.XPath.FilterQuery.Advance() at MS.Internal.Xml.XPath.ChildrenQuery.Advance() at MS.Internal.Xml.XPath.FilterQuery.Advance() at MS.Internal.Xml.XPath.ChildrenQuery.Advance() at MS.Internal.Xml.XPath.FilterQuery.Advance() at MS.Internal.Xml.XPath.ChildrenQuery.Advance() at MS.Internal.Xml.XPath.FilterQuery.Advance() at MS.Internal.Xml.XPath.ChildrenQuery.Advance() at MS.Internal.Xml.XPath.FilterQuery.Advance() at MS.Internal.Xml.XPath.XPathSelectionIterator.MoveNext() at FlaUI.Core.AutomationElements.AutomationElement.FindFirstByXPath(String xPath)