> 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/statecheck.md).

# StateCheck

***stateCheck*** is a feature to know whether the execution control landed on the intended page. This method requires three parameters.

#### Syntax

***void stateCheck(String htmlElementName, String attType,String targetValue)***

| **Name**              | **Type** | **Description**                      |
| --------------------- | -------- | ------------------------------------ |
| ***htmlElementName*** | String   | Dom element name                     |
| **attType**           | String   | Type of the attribute                |
| ***targetValue***     | String   | The actual value of the html element |

#### Code snippet

```
/* 
 *  "I'm Feeling Lucky" button is found on Google's home page, 
 *  which tells you that you are rightly landed on Google's 
 *  home page
 */

stateCheck("bt.iamfeelinglucky", "value", "I'm Feeling Lucky");
```
