> For the complete documentation index, see [llms.txt](https://help.autify.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.autify.com/nocode-web/en/when-the-test-doesnt-work/test-issues/unintended-point-is-clicked.md). Agents can also search and read this documentation through its [MCP server](https://help.autify.com/~gitbook/mcp).

# Autify clicks on the wrong area within an element

## How Autify clicks on elements

No matter where you click on an element during recording (even if you click on the edge of the element), Autify clicks on the center of the element during test runs. Because of this, you may find that Autify sometimes performs an unintended action during test execution, causing the test to fail.

## An example of a failed test

For example, let's consider a scenario where we check a checkbox and confirm that it is checked.

![](https://1964297753-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVdZPTgwISYb3LhjgKnw6%2Fuploads%2Fgit-blob-ee1437f415b41dd9f9a836a7b568493c500d8d84%2Fcheckbox.png?alt=media)

There are two ways to check this checkbox: directly clicking on the checkbox (input element), or clicking somewhere inside the div element that surrounds it.

![](https://1964297753-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVdZPTgwISYb3LhjgKnw6%2Fuploads%2Fgit-blob-3e93d17667a97c40b961bcec993f1bdbeb3bf62c%2Fcheckbox-input-div.png?alt=media)

During recording, we checked the checkbox by clicking somewhere near "This", which is inside the div element. This is why the screenshot focus is on the entire div element. Looking at the center of the div element, we can see that there's a link to Autify's website. Clicking this would send the user to Autify's website instead of checking the checkbox.

![](https://1964297753-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVdZPTgwISYb3LhjgKnw6%2Fuploads%2Fgit-blob-1a42a881a5dbb1905118c5d2253dd34e2d7537b6%2Ffocus-div.png?alt=media)

Take a look at the test result below. We can see that Autify clicked on the link in Step 2, which resulted in the page to transition in Step 3. Autify couldn't find the checkbox, and the test failed.

![](https://1964297753-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVdZPTgwISYb3LhjgKnw6%2Fuploads%2Fgit-blob-d7f16692ecceeaa1ce1cb8b1b8dce11dfe213cb7%2Fen-test-fail.png?alt=media)

## Solution

In the example above, the test would have passed if Autify had clicked on the input element instead of the div element. If your test failed because Autify clicked on the center of an element, please re-record the scenario or use [Quick Element Update](https://help.autify.com/nocode-web/en/autify-university/foundation/test-results/quick-element-update.md) to ensure that Autify clicks on the correct element.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.autify.com/nocode-web/en/when-the-test-doesnt-work/test-issues/unintended-point-is-clicked.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
