📄️ Recommended Practices
On this page you will learn the different methods to detect elements. Every method has its strength and weaknesses.
📄️ Custom Elements
With Custom Elements, you can define a custom element-description based on how the element is displayed on the screen. This can be particularly useful in situations where standard element-descriptions are unreliable due to the non-standard properties of the element:
📄️ Text Selectors
When using AskUI for automated tests, text elements are playing a big role, since they typically appear more distinctively than other elements such as icons or textfields. Hence, knowing the benefits of using different text element-description can become critical in scaffolding a robust set of instructions.
📄️ Select Elements by Proximity
A common problem while writing instructions that one encounters is interacting with elements that share the same text.
📄️ AI Elements
Enable the AskUI Development Environment as described in AskUI Development Environment and then activate the experimental commands by running AskUI-ImportExperimentalCommands in your terminal.
📄️ Extracting Data from Elements
In this guide you will learn how to extract elements and their values out of your User Interface.
📄️ Scrolling
When you use AskUI you can only interact with elements that you can see on your screen. Therefore you have to scroll down/sideways to interact with currently invisible elements.
📄️ Implement Assertions
In this guide we will first show you how to assert if an element is there or not.