GuOrg / Gu.Wpf.UiAutomation

MIT License
96 stars 17 forks source link

Fix TryFindFirst is throwing even if a timeout is set #133

Closed Codex04 closed 2 years ago

Codex04 commented 2 years ago

Because of using uiElement.AutomationElement.FindFirst instead of uiElement.AutomationElement.TryFindFirst, in some cases the method was throwing when no element was found

JohanLarsson commented 2 years ago

A test would be nice.

This library has struggled on CI, never found time to dig in.

Codex04 commented 2 years ago

I added a test that proves the fix works but I admit I'm not motivated enough to fix the IC sorry for that 😄

JohanLarsson commented 2 years ago

Thanks!

JohanLarsson commented 2 years ago

https://www.nuget.org/packages/Gu.Wpf.UiAutomation/0.4.1