AutomationElement shows up using Inspect.exe but does show not up when using UIAutomationCore.dll or System.Windows.Automation
Clash Royale CLAN TAG #URR8PPP AutomationElement shows up using Inspect.exe but does show not up when using UIAutomationCore.dll or System.Windows.Automation TL;DR : What am I doing wrong that is causing the workspace pane to show up in Inspect Objects but not show up in my custom code? I am trying to write some UI automation to a 3rd party program. I am using Inspect.exe that came with the Windows SDK, and I have tried both System.Windows.Automation and direct COM Calls (using the wrapper library from UIA Verify). Process processes = Process.GetProcessesByName("Redacted Client"); if (processes.Length == 0) throw new Exception("Could not find "Redacted Client" process"); PropertyCondition parentFileCond = new PropertyCondition(AutomationElement.ProcessIdProperty, processes[0].Id); PropertyCondition workspaceCond = new PropertyCondition(AutomationElement.NameProperty, "Workspace", PropertyConditionFlags.IgnoreCase); PropertyCondition documentCond ...