> For the complete documentation index, see [llms.txt](https://docs.qatts.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.qatts.com/master-1/ui-action-methods/assertion-methods/assert-groups.md).

# 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                                 |

##
