Cypress Element Identification

We use css selectors to identify elements. Here are important selectors.
  • :not(selector) - select every element that is not matching a selector
  • :last-child - select every last of element
  • [attribute] - select all elements having given attribute
  • [attribute=value] - select all elements having given attribute with given value
  • [attribute~=value] - select all elements having given attribute containing given value


                    
Complex problems, Simple Solutions