# Test Step / Action

Test steps make the test case. They can be commands, assertions and references. There are different collections of commands and assertions for page and for a target (DOM element).

![Test steps](https://3461068122-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdyKJ-zzeS2hB7DF04J%2F-LuCIsXyh9MQ_tyngy-o%2F-LuCJgjeXM1lsmV7NDB4%2Factions.png?alt=media\&token=bb0b004b-9564-471d-a8e2-a78cc0f0a8c2)

## Action Comment

If you want provide an action with a comment while editing it you click on **"comment"** link.

![Comment link](https://3461068122-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdyKJ-zzeS2hB7DF04J%2F-LuCrYIUBoh9Ngj8VIqS%2F-LuD0lDtbGAc1nhY09Og%2Ftarget-comment1.png?alt=media\&token=5f02149c-62cb-4c81-b442-9ed574b2f137)

The comment form expands and you can type in your comment.&#x20;

![Comment form](https://3461068122-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdyKJ-zzeS2hB7DF04J%2F-LuCrYIUBoh9Ngj8VIqS%2F-LuD172exZ5bV4QWPV7W%2Ftarget-comment2.png?alt=media\&token=ff0dc143-a064-448d-b393-8c88203f7209)

As you save the changes the comment appears in the test case table.

![Comment in the test case table](https://3461068122-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdyKJ-zzeS2hB7DF04J%2F-LuCrYIUBoh9Ngj8VIqS%2F-LuD19mp1JamHchlF_ME%2Ftarget-comment3.png?alt=media\&token=010e3af5-cec4-49d9-b383-99f773b95722)

## "Wait for the target" Option

While editing any target action (except `target.assertVisible`) you can use "wait for the target" checkbox to specify if the system needs to wait for target to appear in the page DOM before performing the action

![Wait for target option](https://3461068122-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdyKJ-zzeS2hB7DF04J%2F-LuCrYIUBoh9Ngj8VIqS%2F-LuD1QZwd2SS1WCh3TIp%2Ftarget-wait-1.png?alt=media\&token=5f7b9815-1f28-405b-b3d6-3341e9a4f71c)

As you save the changes with the option set ON the test case table you can see updated action description.

![Action description updates](https://3461068122-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdyKJ-zzeS2hB7DF04J%2F-LuCrYIUBoh9Ngj8VIqS%2F-LuD1TIxy1ZTGUkegiTJ%2Ftarget-wait-2.png?alt=media\&token=2be06f90-d5b1-43d2-9c31-393d8707883c)


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.puppetry.app/test-step.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
