> For the complete documentation index, see [llms.txt](https://help.autify.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.autify.com/nocode-web/en/autify-university/foundation/creating-a-scenario/adding-and-deleting-steps.md). Agents can also search and read this documentation through its [MCP server](https://help.autify.com/~gitbook/mcp).

# Actions you can perform on Steps

After you create your first scenario, what should you do if you realize you've forgotten to record a step or want to delete, move, or copy a step? On this page, you will learn various actions you can perform on steps, such as how to add and delete steps.

## How to add steps

Hover over the space between steps, and you will see a small \[+] button. Click it, and several options will appear. More options are available if you hover over \[Insert Step].

![](https://1964297753-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVdZPTgwISYb3LhjgKnw6%2Fuploads%2Fgit-blob-eab73cd2400e31a8b7a8f7ee0e9a8abf23afa01a%2FScreen%20Shot%202022-07-22%20at%2018.53.21.png?alt=media)

Whichever option you choose, a new step (or Step Group) will be inserted in that location. Let's take a look at what each option does.

### Record here

You will use this button most frequently when editing scenarios. If you select this option, the recording page will appear. All the steps until the location you want to edit will be performed automatically.

**Note:** Once you finish adding new steps, please check whether the scenario still works. Navigating away to a new page might cause the test to fail. Make sure that the step immediately after the one you added can be completed.

### Record without replay

This option is the same as *Record here*, except the recorder with not replay the preceding steps. The recorder will be paused, so you will have to navigate to the area/page you wish to edit.

### Insert Step

The following options will appear when you hover over *Insert Step*:

#### Step Group

Choose this option to insert a Step Group in the scenario. Once inserted, select the Step Group you wish to add. Please note that the list will only show Step Groups that don’t have a Initial Step with Visit action.

#### JS Step

JS Steps are helpful for enhancing your scenarios and improving tests. We are continuing to improve our platform so that you can test without using JavaScript, but there are some cases where its use is needed.

#### JS Step From Snippets

You can insert saved snippets. If your JS snippet interacts with a specific element(s), please add the snippet when that element(s) is accessible on the webpage.

#### Dynamic Value

Dynamic value is useful when you want to generate values that change each time, such as random strings and dates. Currently, the following Dynamic Values are available:

* Dynamic date
* Random character string
* Random integer

#### Sleep Step

If you want to tell your test to wait a certain time before continuing, insert a sleep step. You can specify how many seconds to wait. This step comes in handy if a webpage takes a while to load or you need to wait for an element to appear.

#### Go To Step

As in recording, you can insert a Go To Step to jump to a specified URL.

#### Open Window Step

This option inserts a step that opens a new window.

#### Handle Alert Step

This option inserts a step that closes an alert.

## How to select a step

When you hover over a step, a checkbox appears at the top left. You can select the step by checking the checkbox.

![](https://1964297753-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVdZPTgwISYb3LhjgKnw6%2Fuploads%2Fgit-blob-b8f742c9880e12f7c51b3d3e3599aed8bd400639%2Fstep-checkbox-en.png?alt=media)

When you select a step, the message "1 step selected" will appear:

![](https://1964297753-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVdZPTgwISYb3LhjgKnw6%2Fuploads%2Fgit-blob-aeaa73d854b3d8a3aabdcee4c49fcd5e43f2ca87%2Fstep-chek-message-en.png?alt=media)

### How to select multiple steps

You can select multiple steps by clicking on the checkboxes, but there are two other ways to select multiple steps. Once you've selected multiple steps, you can delete, move, or copy them all at once.

1. Drag and drop with the mouse to select multiple steps

   ![](https://1964297753-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVdZPTgwISYb3LhjgKnw6%2Fuploads%2Fgit-blob-8cd33737531bf0ca172a7f0b3bb1570d87bd9a3e%2Fstep-select-en.gif?alt=media)
2. Use the Shift key to select multiple steps in a specific range at once
   1. Click the checkbox of the first step of the range you want to select.
   2. Hold down the Shift key and click on the checkbox of the last step of the range you want to select.

      ![](https://1964297753-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVdZPTgwISYb3LhjgKnw6%2Fuploads%2Fgit-blob-a924bbd2f49223761a2261cada54900497ec06fa%2Fshift%20click%20to%20select%20steps.gif?alt=media)

## How to delete steps

You can delete steps by clicking the recycle bin icon that appears when you hover over a step.

![](https://1964297753-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVdZPTgwISYb3LhjgKnw6%2Fuploads%2Fgit-blob-b848699f5d63804b1fb18fc062bd8aae3ee0acf8%2FDeleteing%20a%20Step.png?alt=media)

If multiple steps are selected, you can delete them at once by clicking \[Delete] displayed in the message.

**Note:** If you delete steps that navigate away from the current page, open dropdown menus, or otherwise make the scenario discontinuous, test results may show a Review Needed flag or the scenario may break. Please be careful when deleting steps.

## How to move steps

With the steps selected, hover over the \[+] button at the location you want to move, and "Move to here" will appear. Click the \[+] button to move the step.

You can also move steps by drag and drop!

![](https://1964297753-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVdZPTgwISYb3LhjgKnw6%2Fuploads%2Fgit-blob-4f6a709b38e4c65dc62e4ffdc838313d32efec99%2Fmove-step-en.gif?alt=media)

## How to copy steps

With the steps selected, click \[Copy] in the message. To paste the copied steps, click the \[+] button at the location where you wish to paste, and select \[Paste steps here.]

![](https://1964297753-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVdZPTgwISYb3LhjgKnw6%2Fuploads%2Fgit-blob-2035aac87f1de745ad34e3b75c24bd0ddc7b3c04%2Fcopy-step-en.gif?alt=media)

## How to edit steps

To edit a step, click the Edit icon or anywhere on the step (except other icons). This will open the step details where you can make edits.

![](https://1964297753-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVdZPTgwISYb3LhjgKnw6%2Fuploads%2Fgit-blob-bea5c2e421a621bdf74f8282cf747b4110c0753f%2Fstep-edit-en.png?alt=media)

## How to enlarge screenshots

To enlarge screenshots, click the enlarge icon. The enlarged screenshot will appear in a new tab.

![](https://1964297753-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVdZPTgwISYb3LhjgKnw6%2Fuploads%2Fgit-blob-bc4447a43c7d18b936a5610172af780ba5787c22%2Fenlargedscreenshot.png?alt=media)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.autify.com/nocode-web/en/autify-university/foundation/creating-a-scenario/adding-and-deleting-steps.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
