Lists and Dropdowns | Bondar Academy
Course: AI-based testing with testRigor
Module: Interation with Web Elements
Instructor: Artem Bondar
Lesson Summary
In this lesson, we explore how to work with dropdowns and lists using Test Trigger . We focus on two main types of dropdowns: Native Dropdowns: Implemented using the SELECT tag. Custom Dropdowns: Use different component libraries with unique styling. To identify a dropdown, right-click and inspect the element. For native dropdowns, look for the SELECT tag and its corresponding OPTION tags. Custom dropdowns may use different tags, such as NBSELECT , and require different interaction methods. Interacting with Dropdowns There are two main approaches to select values from dropdowns: Main Approach: Use the SELECT keyword followed by the value and label. For example: SELECT SUCCESS FROM toaster type Relative Location: If no label is available, use relative positioning. For example: SELECT info from dropdown above height-click Validating Selected Values To assert the selected values, use: check that dropdown toaster type is equal to SUCCESS Selecting by Index You can also select options by their index: SELECT third option from dropdown below toaster type Custom Dropdowns For custom dropdowns without a SELECT tag, interact using relative locations. For example: Click button above title, then select top left In summary, use the appropriate method based on the type of dropdown and its structure. This lesson provides a comprehensive approach to effectively manage dropdowns in Test Trigger.