Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

cypress foreach li

cy.get('ul')
  .find('li')
  .each((el) => {
  	expect(Cypress.$(el)).to.have.class(
  		'classname'
  	)
 })
Source by www.webtips.dev #
 
PREVIOUS NEXT
Tagged: #cypress #foreach #li
ADD COMMENT
Topic
Name
9+4 =