Description: Each window has a set of controls (buttons, input fields, text fields, etc...). Using FindControl allows you to find and subsequently interact with these controls.
START already defines the initial window of the application as the mainWindow variable or you can use FindWindow to find other windows. With FindControl you can use these windows to retrieve information of control within the window
- Title, will search for the title if defined.
- className, will search for the classname if defined
- Timeout, engine will throw an error after the defined timeout unless continueonerror is set to true
- SearchRecursively, defines if only the direct childs or also all indirect children of the window should be searched
- continueOnError, we can indicate if the engine should keep going with the next set of actions in case of a error. This could be especially helpful with if else statements.
var Save = MainWindow.FindControl(title : "Save As");
When the engine finds the control it can perform multiple actions on the control
// This will left click the control.
// This will doubleclick the control.
// This will rightclick the control.
// This will focus on the control.
// Type will type directly to the control and keeps the focus on this control
// Gets all direct child controls for the window (can also be used on a control)
// Gets the processname for the window or control
// Gets the title for the window or control
// Gets the class name for the window or control
// Gets the bounds of the found Window (X, Y coordinates and more)