You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Believe this is due to the cancellation token work where XPath is used and FindFirst is cancelled, leaving an object its retrieved in a different state
Additional context
: System.InvalidOperationException: Operation is not valid due to the current state of the object. at Interop.UIAutomationClient.IUIAutomationElement.FindFirst(TreeScope scope, IUIAutomationCondition condition) at SHAutomation.UIA3.UIA3FrameworkAutomationElement.FindFirst(TreeScope treeScope, ConditionBase condition) at SHAutomation.Core.AutomationElements.SHAutomationElement.FindFirstBase(TreeScope treeScope, ConditionBase condition) at SHAutomation.Core.AutomationElements.SHAutomationElement.FindFirstDescendantBase(ConditionBase condition) at SHAutomation.Core.AutomationElements.SHAutomationElement.<>c__DisplayClass204_0.b__0() at SHAutomation.Core.AutomationElements.SHAutomationElement.GetElement(Func1 function, Boolean shouldExist, ISHAutomationElement& element) at SHAutomation.Core.AutomationElements.SHAutomationElement.FindFirstDescendant(ConditionBase condition, TimeSpan timeout, Boolean waitUntilExists, CancellationToken& cancel) at SHAutomation.Core.AutomationElements.SHAutomationElement.FindFirstDescendant(Func2 conditionFunc, TimeSpan timeout, Boolean waitUntilExists
The text was updated successfully, but these errors were encountered:
Believe this is due to the cancellation token work where XPath is used and FindFirst is cancelled, leaving an object its retrieved in a different state
Additional context
: System.InvalidOperationException: Operation is not valid due to the current state of the object. at Interop.UIAutomationClient.IUIAutomationElement.FindFirst(TreeScope scope, IUIAutomationCondition condition) at SHAutomation.UIA3.UIA3FrameworkAutomationElement.FindFirst(TreeScope treeScope, ConditionBase condition) at SHAutomation.Core.AutomationElements.SHAutomationElement.FindFirstBase(TreeScope treeScope, ConditionBase condition) at SHAutomation.Core.AutomationElements.SHAutomationElement.FindFirstDescendantBase(ConditionBase condition) at SHAutomation.Core.AutomationElements.SHAutomationElement.<>c__DisplayClass204_0.b__0() at SHAutomation.Core.AutomationElements.SHAutomationElement.GetElement(Func
1 function, Boolean shouldExist, ISHAutomationElement& element) at SHAutomation.Core.AutomationElements.SHAutomationElement.FindFirstDescendant(ConditionBase condition, TimeSpan timeout, Boolean waitUntilExists, CancellationToken& cancel) at SHAutomation.Core.AutomationElements.SHAutomationElement.FindFirstDescendant(Func
2 conditionFunc, TimeSpan timeout, Boolean waitUntilExistsThe text was updated successfully, but these errors were encountered: