# How to create a test case?

Every test step begins with an action. These actions are pre-built functions to mimic user interactions like clicking, typing, etc,

**How to perform a click action?**

1. Choose the "Click" action.
2. Select the element type like button, link, etc.
3. Enter the element name (e.g., 'Login', 'Add Ticket').

<figure><img src="https://2079767078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpzYgOvoayDoxSV4Wb6ZV%2Fuploads%2FKnJHH71v5I36brne0gu9%2Fclick_action.png?alt=media&#x26;token=769ed9b5-73ec-451c-9a1e-45a561222fe7" alt=""><figcaption><p>click action</p></figcaption></figure>

&#x20;**Note:** The element name should match exactly, and it is case-sensitive.

**How to type in an input field?**

1. Choose the "Type in fields with" action.
2. Select the input field by its "Placeholder" or "Label".
3. Enter the placeholder or label value.
4. Enter the value to be filled in the input field.

<figure><img src="https://2079767078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpzYgOvoayDoxSV4Wb6ZV%2Fuploads%2Fx77Ltu6mshqeG5ImHKay%2Ftype_action.png?alt=media&#x26;token=21199a30-303b-4daa-be8c-b10decfe3827" alt=""><figcaption><p>type action</p></figcaption></figure>

&#x20;**Note:** You can also perform actions on elements using their "id" and "CSS class name".


---

# 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.sprintsq.com/test/how-to-create-a-test-case.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.
