I am trying to capture a toolbar in Microsoft Teams using C# AutomationElement.FromPoint function.
For some reason this function returns the whole Teams window element and not the toolbar. But....
Once I open Inspect64.exe and capture this toolbar, my AutomationElement.FromPoint starts working properly as well!!
The question is what Inspector does what I didn't?