Closed
Description
I'm seeing this exception quite a lot:
System.Runtime.InteropServices.COMException
HResult=0x80004005
Message=Error HRESULT E_FAIL has been returned from a call to a COM component.
Source=<Cannot evaluate the exception source>
StackTrace:
FlaUI.UIA3.dll!FlaUI.UIA3.UIA3Automation.Compare(FlaUI.Core.AutomationElements.AutomationElement element1, FlaUI.Core.AutomationElements.AutomationElement element2) Unknown
FlaUI.Core.dll!FlaUI.Core.AutomationElements.AutomationElement.Equals(FlaUI.Core.AutomationElements.AutomationElement other) Unknown
> FlaUI.WebDriver.dll!FlaUI.WebDriver.Session.GetOrAddKnownElement.AnonymousMethod__0(FlaUI.WebDriver.KnownElement knownElement) Line 80 C#
System.Linq.dll!System.Linq.Enumerable.TryGetFirst<FlaUI.WebDriver.KnownElement>(System.Collections.Generic.IEnumerable<FlaUI.WebDriver.KnownElement> source, System.Func<FlaUI.WebDriver.KnownElement, bool> predicate, out bool found) Unknown
System.Linq.dll!System.Linq.Enumerable.FirstOrDefault<FlaUI.WebDriver.KnownElement>(System.Collections.Generic.IEnumerable<FlaUI.WebDriver.KnownElement> source, System.Func<FlaUI.WebDriver.KnownElement, bool> predicate) Unknown
FlaUI.WebDriver.dll!FlaUI.WebDriver.Session.GetOrAddKnownElement(FlaUI.Core.AutomationElements.AutomationElement element) Line 80 C#
System.Linq.dll!System.Linq.Utilities.CombineSelectors.AnonymousMethod__0(System.__Canon x) Unknown
System.Linq.dll!System.Linq.Enumerable.SelectArrayIterator<FlaUI.Core.AutomationElements.AutomationElement, FlaUI.WebDriver.Models.FindElementResponse>.ToArray() Unknown
System.Linq.dll!System.Linq.Enumerable.ToArray<FlaUI.WebDriver.Models.FindElementResponse>(System.Collections.Generic.IEnumerable<FlaUI.WebDriver.Models.FindElementResponse> source) Unknown
FlaUI.WebDriver.dll!FlaUI.WebDriver.Controllers.FindElementsController.FindElementsFrom(System.Func<FlaUI.Core.AutomationElements.AutomationElement> startNode, FlaUI.WebDriver.Models.FindElementRequest findElementRequest, FlaUI.WebDriver.Session session) Line 92 C#
FlaUI.WebDriver.dll!FlaUI.WebDriver.Controllers.FindElementsController.FindElements(string sessionId, FlaUI.WebDriver.Models.FindElementRequest findElementRequest) Line 42 C#
Not sure why COMException
would be thrown by UIA3Automation.Compare
.