I'm new to Ranorex and trying to use Ranorex's C# API for a Windows desktop application. How to find an element only by automation id/text in C#?
Looking for something like,
mainWindow.Get(SearchCriteria.ByAutomationId("<automationId>"))
mainWindow.Get<Button>("<automationId>");
or
mainWindow.Button.GetElement("<automationId>");
But in the API docs, all I can see is XPath (RanoreXPath) based object identification.