Understanding the Selector Playground
The Selector Playground is an interactive feature of the Cypress Test Runner. The Selector Playground gives you the ability to determine unique selectors, check elements that match a specific selector, and check the elements that match a specific text in the Cypress application. In this section, we will look at different strategies that Cypress uses to select elements and how from the Test Runner we can identify the selectors that we can use in our tests. By the end of this section, you will learn how to use Cypress to uniquely select elements using the Selector Playground and also how to use the selector strategies that Cypress utilizes to run tests.
Selecting unique elements
The Selector Playground could be one of the most underutilized features in the Cypress Test Runner, but also one of the most useful for anyone who wants to write tests that have meaningful selectors. The Selector Playground enables us to identify valid selectors and...