Close UI Window

The Close UI Window building block is used to close Desktop UI window.

Please note that if no window input is provided then this block will by default close last active window, otherwise it will close the window provided as input to this block.

Fully expanded, the Close UI Window block shows the following properties:

Close-UI-Window-1

The Block Header (“Close UI Window”)

The green input connector in the header is used to trigger the block to start executing.

The green output connector in the header triggers when the UI Window has been successfully closed.

The title of the block (“Close UI Window”) can be changed by double-clicking on it and typing in a new title.

Close method

By default, the “Send win message” method is selected for closing Desktop application under test, user can also choose to close window using “Force kill process” method.

Close timeout

It’s an alternate flow, it triggers if windows is not closed within specified timeout.

Default timeout

If the 'Default Timeout' property checkbox is not selected, then the timeout value is 10 seconds. If the 'Default Timeout' property checkbox is selected, then the 'Default timeout' value selected in the flow settings will be applicable.

Timeout

The maximum time spent searching for the UI window before giving up and triggering “Not found”.

Note: All cases have a “global timeout” that can be configured in the “Settings” panel. This is unrelated to the timeout of a single building block. However, a running case will automatically be cancelled if it runs for longer than the global timeout.

Window

Window handle the window to be closed. Typically the window handle is set by using a Start Application or a Use Window building block.