# Record and author

> Record what you do in your app as automated steps in a Copilot session, then run them to check they work.

Record what you do in your app as automated steps. Each action you take in the session's browser becomes a step, with an element named for what you clicked.

## Start recording

Start a recording from any of these:

- **Author with Copilot**, on the **Automated steps** tab of a test case with no manual steps.

  ![Author with Copilot on a test case that has no manual steps, outlined](https://s3.amazonaws.com/static-docs.testsigma.com/arcus/copilot/copilot_author_with_copilot.webp)

- **Record and author**, in a learning session instead of **Start learning**.
- **Record**, in the toolbar of any Copilot session.

**Author with Copilot** opens the Copilot configuration first. Choose **Where to run**, then click **Start Copilot**. See [Copilot configuration](https://testsigma.com/docs/arcus/v2/copilot/configuration/). The session opens on **Start recording**. In a session that's already open, **Record** starts recording straight away.

## Choose the first page

1. Under **Which page should I open?**, enter the address of the page where the test starts.

2. Click **Start recording**.

      ![The Start recording panel, with the page address and Start recording outlined](https://s3.amazonaws.com/static-docs.testsigma.com/arcus/copilot/copilot_record_first_page.webp)

Copilot adds a **Navigate to** step for that page, runs it, and starts recording.

## Record your steps

Use the app in the session's browser. Each action appears in the step list as you make it, tagged **RECORDED**, with an element named for what you acted on. Selecting a radio button or a checkbox records a **Check** step, such as **Check** `@arcus-go/budget-radio-button`.

![A recording in progress, with Stop recording, the recording toggles, the RECORDED steps, the Budget option selected in the browser, and the Recording status outlined](https://s3.amazonaws.com/static-docs.testsigma.com/arcus/copilot/copilot_recording.webp)

While you record, two toggles in the toolbar control what's captured:

- **Record clicks as hover steps**: records a click as a hover. Off by default.
- **Record scrolling as steps**: records scrolling. On by default.

In a paused session, recorded steps are inserted after the paused step. While you record, the status bar reads **Recording - interact with the test browser**.

### Add a check while you record

Point at an element in the browser to see its card: the element's name and type (such as **Heading** or **Image**), its element name, its locator with a quality grade such as **Good**, and **Add step** actions: **Verify**, **Click**, **Store**, and **Hover**.

To add a check, click **Verify** and choose what to verify: **is visible**, **is enabled**, **is editable**, **its value**, **its placeholder**, or **More...**. The step is added to the recording, such as **Verify that** the element **is visible**.

![The card for the 75 properties found element, with the element details and the Verify options outlined](https://s3.amazonaws.com/static-docs.testsigma.com/arcus/copilot/copilot_element_card.webp)

## Stop recording

Click **Stop recording**. Everything you did stays as steps. To throw the recording away instead, click **Discard recording** below the recorded steps.

To check the steps work, click **Restart execution**. Copilot runs every step from the start, each step that passes shows a tick, and the **Run log** lists each result.

![Recorded steps after Restart execution, with the passed steps, Restart execution, the new Run log entries, and Paused at the end of the test outlined](https://s3.amazonaws.com/static-docs.testsigma.com/arcus/copilot/copilot_recorded_steps_run.webp)

When you end the session, the steps are saved to the test case, and its **Automation Type** changes to **Automated**. Recording doesn't change the test case's manual steps.

![The test case's Automated steps tab after the session, with the recorded steps and Debug with Copilot outlined](https://s3.amazonaws.com/static-docs.testsigma.com/arcus/copilot/copilot_recorded_steps_saved.webp)

![Automation Type set to Automated, outlined](https://s3.amazonaws.com/static-docs.testsigma.com/arcus/copilot/copilot_automation_type.webp)

The test case header then shows **Debug with Copilot**. See [Debug and run with Copilot](https://testsigma.com/docs/arcus/v2/automation/copilot/#end-the-session).

If you record yourself signing in, the password is saved as a step value in plain text. Record the sign-in with a placeholder, then change the step's value to an environment variable. See [Environments](https://testsigma.com/docs/arcus/v2/test-assets/environments/).

## Troubleshooting

### The browser opens the Testsigma Recorder page

On your own machine, the session's Chrome can open the Chrome Web Store page for the Testsigma Recorder extension. Add the extension from that page, then start recording again. Sessions on Testsigma Lab don't show this page.
