> 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-mobile/en/faq/test-execution-and-result/ml-assert-element-text-should-be.md). Agents can also search and read this documentation through its [MCP server](https://help.autify.com/~gitbook/mcp).

# Why does the "Element Text Should Be" ML assertion step sometimes succeed even if the value of the e

In the **“Element Text Should Be”** steps of ML assertion, if the difference between the expected text and the actual text is slight, as in the following example, Autify sometimes may not be able to determine the text difference and the test succeeds.

* Expected text: `hogehoge 123456`
* Actual text: `hogehoge 123457`

If the target text is short or the difference between the expected and actual text is large, Autify will correctly determine the difference, and the test will fail.

* **Target text is short**
  * Expected text: `hogehoge 1`
  * Actual text: `hogehoge 2`
* **The difference between the expected and the actual text is large**
  * Expected text: `hogehoge 12345`
  * Actual text: `hogehoge 67890`

If the difference between the expected and the actual text value is so small, and the ML assertion is successful, please use the assertion instead of the ML assertion.

![](https://1041389054-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fj0BSsfTevAGpY0hwBHT7%2Fuploads%2Fgit-blob-aae7816df2b70e39a89b4902b1662990d12910b8%2FScreenshot%202023-03-20%20at%2012.54.53.png?alt=media)

## Related articles

* [Machine Learning(ML) Assertion](https://help.autify.com/nocode-mobile/en/using-autify-nocode-mobile/scenario-creation-and-maintenance/ml-assertion.md)


---

# 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-mobile/en/faq/test-execution-and-result/ml-assert-element-text-should-be.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.
