The capabilities for Test Studio UI locators are founded in the ArtOfTest automation library. This means whatever was done through the Test Studio IDE is also doable from the code. All the search methods for locating an element are wrapped inside the Find class. In a WPF application, this class is accessible from any container. In our case, each window will hold a reference for this class through which we can exert our search expressions.
This has two applications in real life. The first one is when accessing an element that is not yet defined in the element repository. Hence, accessing the element becomes allowable through the dynamic evaluation of search expressions fed to the various find methods of the Find class. The accessed element can then be interacted with by applying different UI operations. The other area of application is in automating tests for UI and that is verifying properties for UI elements, and the hierarchical relation with respect to their surrounding...