Update UI Window



The Update UI Window block adjusts the state of a desktop application window. It supports standard window actions like maximize, minimize, and restore. This is useful in desktop UI automation for ensuring the window is in the expected state before interacting with its contents.

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

image-20251113-143112.png

Note: The screenshot on this page uses the Elegance Design, introduced in 2025.3. If you are using an earlier version, your layout may look different.

Quick-start

  1. Drag Update UI Window onto the canvas.

  2. Specify the basic parameter required for this block to operate: Update method.

  3. Connect the Window input to the target UI window you want to control.

  4. Run the flow when it’s ready.


Building block parameters

Parameters
  • The Block Header; 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 element has been successfully found. The title of the block (“Update UI Window”) can be changed by double-clicking on it and typing in a new title.

  • Update method: Selects how the target window should be updated. Values:

    • Maximize: Enlarges the window to fill the screen.

    • Minimize: Sends the window to the taskbar.

    • Restore: Returns the window to its previous size and position.

  • Window: Specifies the window to be updated. Typically connected to the Window output of a previous Find UI Element or Start Application block.


Resources

Topic

Description

Flows FAQ

Common questions about creating, running, and managing flows in Leapwork.

Flows Troubleshooting

Guidelines and solutions for identifying and fixing issues that occur when building or running flows in Leapwork.