The Focus Window Action (under the UI/Windows folder) provide us with the option to find a window using its title and/or class.


This can be extremely useful since, this option gives us the ability to use wildcards instead of the exact name of the window.


Lets say for example that the title of the window of our application is "WinAutomation Console - Professional Edition"


We could simply search for "WinAutomation Console*" and that would still allow us to capture the desired window. This makes the title more generic, therefore even when the exact title differs (eg: "WinAutomation Console - Professional Plus Edition"), it still focuses the window.


*The Focus Windows action only allows us to "Focus" or "Bring a window to front", whereas in order to grab controls from the window, the Get Window action needs to used.





Another example would be the following