Create and reuse snippets

A snippet can be created in three ways.

  1. From a selection of steps:

    (must be steps that can be grouped and not a single Group step)

    1. Select one or more steps and click Create Snippet from Selection on the Edit menu.
    2. Enter a name for the new snippet.
    3. Create a snippet of that name containing the select steps.
  2. Turn a group step into a snippet step:
    1. Select a Group step and click Convert Group to Snippet on the Edit menu.
    2. Enter a name for the new snippet.
    3. Create a snippet of that name containing the group steps.

    To convert a snippet to a Group step, select a snippet, and click Convert Snippet to Group on the Edit menu.

  3. Create a snippet from a new snippet:
    1. On the File menu, select New Snippet.
    2. Enter a name for the new snippet.

      An empty snippet appears in your project and the Snippet editor opens.

      You cannot edit the snippet contents (the steps inside the snippet) inside this editor.

    3. Edit the description and referenced variables list as needed.
You can right-click a snippet in the Project tree and select Create robot with same input. This generates a new robot based on the snippet input parameters, variables, and dependencies. For details, see Create Robot from existing Basic Engine Robot or snippet.