Elements Location Rules | Bondar Academy
Course: AI-based testing with testRigor
Module: Locating Web Elements
Instructor: Artem Bondar
Lesson Summary
This lesson focuses on understanding how Test Trigger interacts with web pages, specifically how it perceives elements as a series of boxes . This foundational knowledge is essential for creating effective prompts. Key Concepts Web Page Representation: Test Trigger views a web page as various boxes, each containing elements like titles, input fields, and buttons. Element Inspection: Use Chrome DevTools to inspect elements. Right-click on an element and select Inspect to see its box representation and layout attributes. Relative Positioning: Commands can specify the location of elements relative to others using keywords like above , below , to the right of , etc. Overlap Rule: For Test Trigger to select an element, there must be at least 30% overlap with the targeted box. Attributes and Interaction Elements can be identified not only by visible text but also by attributes such as data-tid , id , or class . This is particularly useful when elements lack visible text. Types of Web Elements Test Trigger recognizes nine types of web elements, including: Text Label Button Link Input Dropdown Checkbox Radio Button File Input Prompt Structure The basic prompt structure consists of: Action Command + Action Target + Target Location Example: click button sign in below the password Understanding these principles will enhance your ability to create effective prompts for Test Trigger. The next lesson will involve practical activities to apply these concepts.