SetFocus Method (BrowserWindow and Window Objects)

Applies to TestComplete 12.60, last modified on September 17, 2018

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.

See Also

Focused Property
Enabled Property
Visible Property
Activate Action
Restore Action

Highlight search results