--- title: "Why does the \"Element Text Should Be\" ML assertion step sometimes succeed even if the value of the execution text is not the same?" slug: "ml-assert-element-text-should-be" updated: 2023-04-12T04:04:56Z published: 2023-04-12T04:04:56Z canonical: "help.autify.com/ml-assert-element-text-should-be" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.autify.com/llms.txt > Use this file to discover all available pages before exploring further. # Why does the "Element Text Should Be" ML assertion step sometimes succeed even if the value of the execution text is not correct? *※ Please note that parts of this page are machine translated.* 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. ![image](https://cdn.document360.io/a099d8a2-cfd2-42ca-9906-68b4a337f4a5/Images/Documentation/Screenshot%202023-03-20%20at%2012.54.53.png?sv=2026-02-06&spr=https&st=2026-11-27T19%3A57%3A57Z&se=2026-11-27T20%3A57%3A57Z&sr=b&sp=r&sig=t0xMlHZfbaqH3ZjxMY%2BevPnwxpbLCOpyo6KwK2vGSEI%3D) ## Related articles - [Machine Learning(ML) Assertion](/mobile/docs/ml-assertion)