Input Fields | Bondar Academy
Course: AI-based testing with testRigor
Module: Interation with Web Elements
Instructor: Artem Bondar
Lesson Summary
In this lesson, we will explore how to automate input fields , interact with them in Test Trigger , and perform validation of the values within these fields. Interacting with Input Fields There are two primary methods to input values into fields: Option 1: Use the Enter command followed by the value to type. For example: Enter [email protected] into email below using the grid Option 2: Click inside the input field and then type the value. For example: Click input password below using the grid Note: The type command simulates keystrokes and requires the input field to be activated first. Validation of Input Fields To validate input fields, use the check that command: For a partial match , use contains . For an exact match , use equals . For regular expressions , use match projects to assert specific patterns. Regular Expressions A regular expression allows you to match specific patterns in strings. For example, to validate email formats: ^[a-zA-Z]+@test\.com$ This checks for any name followed by @test.com . In summary, to interact with input fields, use either Enter or type commands. For validation, you can use check that with contains , equals , or regular expressions to ensure the correct values are entered. Thank you for watching, and see you in the next lesson!