Skip to main content

Focus Window

Description

It brings the specified window to the foreground to start accepting input.

note

This activity requires an active display and an unlocked user session to simulate interactions with UI components successfully. For more detailed information, please refer to the relevant section in the Desktop Automation Notes.

Properties

Input

  • Window Title – Holds the title of the window identified through Window Selector. You can also type in the title to identify the window for automation.

  • Window Instance - Holds the window instance identified through Window Selector. You can also type in the window instance for automation.

  • Search Parameters – Holds the information of the UI element identified through Element Selector.

Misc

  • DisplayName – The display name of the activity.

  • Private – If selected, the variables and argument values will no longer be logged at the Verbose level.

Optional

  • Continue On Error – It Specifies whether the automation should continue even when the activity throws an error. If True, the activity continues without throwing any exceptions. If False, the activity throws an exception. The default value is False.

Note: If this activity is present inside the Try-Catch block, and the value of this property is True, no error would be caught.

Example

Download Example

Focus Window