Switch Session

Switch Session

This block lets you switch to a different terminal session. To ensure that your terminal is already connected to a session (in order for it to be used by Leapwork), you can create a sub-flow using a desktop block.

Building Block Header

The green input connector (top left) triggers this block to begin execution.

The green output connector (top right) is triggered when the session has been switched successfully.

You can always change the title of a block by double-clicking on it and typing in a new title.

Terminal session type

Leapwork supports sessions from A-Z (uppercase), and allows you to switch between sessions within the same flow.

Error occurred

If “Switch Session” returns an error during execution, you can use this output connector to branch your flow.

Default timeout

If the 'Default Timeout' property checkbox is not selected, then the timeout value will be set to 10 seconds unless changes manually. If the 'Default Timeout' property checkbox is selected, then the 'Default timeout' value selected in the flow settings (under “Max. run time) will be applied.

The Green Screen Recorder and building blocks are available with Enterprise plans.