--- title: "Machine Learning (ML) Assertion" slug: "ml-assertion" updated: 2025-12-04T08:38:51Z published: 2025-12-04T08:38:51Z canonical: "help.autify.com/ml-assertion" --- > ## 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. # Machine Learning (ML) Assertion ## What is ML Assertion? Autify's Machine Learning technology uses the large amount of training data available in Autify to understand element information and make assertions on any element on the screen. Autify's Machine Learning technology recognizes the elements and enables the user to easily select which elements to assert against. ## How is ML Assertion different from other assertion methods? With ML Assertion, the methods used to recognize elements on the screen are different. This means that ML Assertion is able to support apps created with a wider variety of app development languages and libraries such as Objective-C, Swift, Flutter, React Native, and so on. ML Assertion also provides an improvement in performance compared to previous assertion methods. (Note: There is no additional work or changes in behavior required to use ML Assertions) ## How to use ML Assertion It is easy to use! ### Scenario detail page 1. Go to a Scenario details page 2. Press "ML Assertion" at the top of the screen where you want to add an assertion ![CleanShot 2022-06-06 at 01.12.37.png](https://cdn.document360.io/a099d8a2-cfd2-42ca-9906-68b4a337f4a5/Images/Documentation/CleanShot%202022-06-06%20at%2001.12.37.png?sv=2026-02-06&spr=https&st=2026-11-07T12%3A10%3A22Z&se=2026-11-07T13%3A10%3A22Z&sr=c&sp=r&sig=%2FRB8lp2E7nUPgKThhLLFVguxtXdqDppqJDxHfGIao%2FI%3D) 3. Select assertion keywords and expectations to be used ![CleanShot 2022-06-06 at 01.15.32.png](https://cdn.document360.io/a099d8a2-cfd2-42ca-9906-68b4a337f4a5/Images/Documentation/CleanShot%202022-06-06%20at%2001.15.32.png?sv=2026-02-06&spr=https&st=2026-11-07T12%3A10%3A22Z&se=2026-11-07T13%3A10%3A22Z&sr=c&sp=r&sig=%2FRB8lp2E7nUPgKThhLLFVguxtXdqDppqJDxHfGIao%2FI%3D) 4. Once the information is added, you will be able to press “Save” ### On Recording page 1. Start recording 2. Select ML Assert from terminal operations ![CleanShot 2022-06-06 at 01.16.42.png](https://cdn.document360.io/a099d8a2-cfd2-42ca-9906-68b4a337f4a5/Images/Documentation/CleanShot%202022-06-06%20at%2001.16.42.png?sv=2026-02-06&spr=https&st=2026-11-07T12%3A10%3A22Z&se=2026-11-07T13%3A10%3A22Z&sr=c&sp=r&sig=%2FRB8lp2E7nUPgKThhLLFVguxtXdqDppqJDxHfGIao%2FI%3D) 3. Select assertion keywords and expectations to be used ![CleanShot 2022-06-06 at 01.15.32.png](https://cdn.document360.io/a099d8a2-cfd2-42ca-9906-68b4a337f4a5/Images/Documentation/CleanShot%202022-06-06%20at%2001.15.32.png?sv=2026-02-06&spr=https&st=2026-11-07T12%3A10%3A22Z&se=2026-11-07T13%3A10%3A22Z&sr=c&sp=r&sig=%2FRB8lp2E7nUPgKThhLLFVguxtXdqDppqJDxHfGIao%2FI%3D) 4. Once the information is added, you will be able to press “Save” ## ML Assertion keywords and descriptions | Keyword | Description | | --- | --- | | Element Should Be Visible | Verify that the target element is visible | | Element Text Should Be | Verify that the string of the target element matches the specified string | | Element Should Contain | Verify that the target element contains the specified string | | Element Should Not Contain | Verify that the element does not contain the specified string of characters |