# Assert Groups

Group assertion is similar to the above element assertion. The only difference is you will be doing assertion on a group. All the Product element under the given group will be asserted in a single go. By setting ***recursive,*** Qatts will find all the product elements under the group by continuously looping through subgroups.&#x20;

#### Syntax

1. ***boolean assertGroup(String groupName,String elementType)***
2. ***boolean assertGroup(String groupName, String elementType, boolean recursive)***

| **Name**          | **Type** | **Description**                               |
| ----------------- | -------- | --------------------------------------------- |
| ***groupName***   | String   | Name of the group                             |
| ***elementType*** | String   | Type of the UI element. \[input, view, error] |
| ***recursive***   | boolean  | TRUE or FALSE                                 |

##


---

# 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/master-1/ui-action-methods/assertion-methods/assert-groups.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.
