Skip to main content
[Command] Try
Sophie avatar
Written by Sophie
Updated over a year ago

Definition and Usage

The Try command is used in try...except blocks. It defines a block of code test if it contains any errors.

You can define different blocks for different error types, and blocks to execute if nothing went wrong, see examples below.

Example

This workflow will try to perform "Go to web page", in other words, it will try to open Amazon.com in the built-in browser in RPA and save it as webpage. After this, the workflow ends.

Did this answer your question?