Recap
Review what you have learned in this course.
We'll cover the following...
In the course, we covered a wide range of topics and techniques. Let’s recap everything we learned.
Selecting elements
We explored different element selection techniques using Cypress. We covered the usage of the cy.contains()
function to select elements based on their text content, and the cy.get()
function for selecting elements by their tag, class, id, and attribute selectors. Moreover, we compared various selectors, highlighting their advantages and disadvantages. We learned about selecting elements with custom attributes like data-cy
because it enhances precision and reliability. Throughout the course, we emphasized the importance of selecting elements based on the specific use case, ensuring we choose the most suitable selector for each scenario.
Making assertions
In this course, we also learned how to assert the state of elements and our application using the .should()
function in Cypress. Similarly, we can check various properties of elements such as length, class, value, text content, style, and visibility. We also explored examples ...