Description
This action brings the window to the top (that is, in front of other windows) if it is a top-level window or an MDI-child window. If the window is minimized, Activate
first brings it back to the normal state. This action has no effect on popup windows and controls, except that an error message is inserted into the test log.
Declaration
TestObj.Activate()
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
To view this method in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.
Result Value
None.
Example
To view an example that demonstrates how to use the Activate
action, see Simulating User Actions on Application Windows.
See Also
ActiveWindow (Desktop Objects)
SetFocus Method (BrowserWindow and Window Objects)
Visible Property
Close Action (Window Objects)
Restore Action