# check\_box

A checkbox is a small, usually square or rectangular box with a clear area in the middle.

The checkbox is used to indicate that an item is selected. It can be used to select one or more items from a list, and they can be either checked or unchecked.

Checkboxes are often used in online forms to allow people to choose which items they want included in the form submission.

## Automation

When automating a checkbox. we need to think and decide what should be the final status of our checkbox. Because, some checkboxes might come selected at the time of loading the web page. To address this QATTS has a logical mechanism to give the desired result.&#x20;

Let's understand the inputs for a check box

#### Pre-Requisite : Saving a UI element and Using in the design !!!

A true / false value should always be provided in the test data.

**TRUE** : If we want the checkbox to be in selected state. Ignores if already in selected state

**FALSE** : If we want the checkbox to be in de-selected state. Ignores if already in de-selected state

Note : If there was no value provided in the test data. No action will be performed

Let's see some questions from automation communities.  [Trouble Shoot](/studio/ui-elements/text_box/trouble-shoot.md)

How to configure the advanced options. [Properties Library](/studio/ui-elements/text_box/properties-library.md)


---

# 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.qatts.com/studio/ui-elements/check_box.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.
