Description
This action moves the input focus to the given object. If the object cannot obtain the input focus, the method fails and posts an error message to the test log.
Declaration
TestObj.SetFocus()
TestObj | A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section | |||
Result | None |
Applies To
The method is applied to the following objects:
View Mode
This method is available in the Object Browser panel and in other panels and dialogs in both Basic and Advanced view modes.
Result Value
None.
Example
To view an example that demonstrates how to use the SetFocus
method, see Simulating User Actions on Application Windows.
See Also
Focused Property
Enabled Property
Visible Property
Activate Action
Restore Action