Hire QA – Specialized in QA Recruitment, Technical Interviews and Testing Solutions

Cypress CSS selectors with Regular Expression (RegEx) Patterns

Category: Cypress
*	Match all element that contains the value	
cy.get(‘[class*=”class-name”]’)

$	Match all element that ends with the value	
cy.get(‘[class$=”class-name”]’) 

^	Match all element that starts with the value	
cy.get(‘[class^=”class-name”]’)

Leave a Reply

Your email address will not be published. Required fields are marked *