FlaUInspect icon indicating copy to clipboard operation
FlaUInspect copied to clipboard

An error occurs when running on a Windows 7

Open haohetao opened this issue 4 years ago • 5 comments

error

haohetao avatar Sep 14 '21 05:09 haohetao

What does error message say in your local language?

siggipop avatar Sep 14 '21 12:09 siggipop

@siggipop values are not in the expected range.

haohetao avatar Sep 16 '21 06:09 haohetao

i also see the same error when run the app on windows7;

luoyulong-CQMU avatar Nov 29 '21 10:11 luoyulong-CQMU

I also see the same error when run the app on windows7;And if you use version 1.2.0, there is no problem~ Capture

a9038889 avatar Jun 16 '22 04:06 a9038889

Any chances this issue can be fixed somehow? Same issue happens both in 32-bit, and 64-bit Windows 7. Maybe some component or update is missing in the system?

For references - text representation of the exception:

System.AggregateException: One or more errors occurred. ---> System.ArgumentException: Value does not fall within the expected range.
   at Interop.UIAutomationClient.IUIAutomationElement.GetCurrentPropertyValueEx(Int32 propertyId, Int32 ignoreDefaultValue)
   at FlaUI.UIA3.UIA3FrameworkAutomationElement.InternalGetPropertyValue(Int32 propertyId, Boolean cached, Boolean useDefaultIfNotSupported)
   at FlaUI.Core.FrameworkAutomationElementBase.TryGetPropertyValue[T](PropertyId property, T& value)
   at FlaUI.Core.AutomationElements.AutomationElement.IsPatternSupported(PatternId pattern)
   at System.Linq.Enumerable.WhereArrayIterator`1.MoveNext()
   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
   at FlaUI.Core.AutomationElements.AutomationElement.GetSupportedPatterns()
   at FlaUInspect.ViewModels.ElementViewModel.LoadDetails()
   at FlaUInspect.ViewModels.ElementViewModel.<set_IsSelected>b__9_0()
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
   --- End of inner exception stack trace ---
---> (Inner Exception #0) System.ArgumentException: Value does not fall within the expected range.
   at Interop.UIAutomationClient.IUIAutomationElement.GetCurrentPropertyValueEx(Int32 propertyId, Int32 ignoreDefaultValue)
   at FlaUI.UIA3.UIA3FrameworkAutomationElement.InternalGetPropertyValue(Int32 propertyId, Boolean cached, Boolean useDefaultIfNotSupported)
   at FlaUI.Core.FrameworkAutomationElementBase.TryGetPropertyValue[T](PropertyId property, T& value)
   at FlaUI.Core.AutomationElements.AutomationElement.IsPatternSupported(PatternId pattern)
   at System.Linq.Enumerable.WhereArrayIterator`1.MoveNext()
   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
   at FlaUI.Core.AutomationElements.AutomationElement.GetSupportedPatterns()
   at FlaUInspect.ViewModels.ElementViewModel.LoadDetails()
   at FlaUInspect.ViewModels.ElementViewModel.<set_IsSelected>b__9_0()
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()<---

Anton-V-K avatar Dec 01 '23 11:12 Anton-V-K