FlaUI / FlaUInspect

Inspect tool to inspect UIs from an automation perspective
MIT License
422 stars 100 forks source link

An error occurs when running on a Windows 7 #18

Open haohetao opened 3 years ago

haohetao commented 3 years ago

error

siggipop commented 3 years ago

What does error message say in your local language?

haohetao commented 3 years ago

@siggipop values are not in the expected range.

a9038889 commented 2 years ago

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

Anton-V-K commented 10 months ago

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()<---