Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

cypress how to get element length

let countOfElements = 0;
cy.get(".element-selector").then($elements => {
    countOfElements = $elements.length;
  });
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #cypress #element #length
ADD COMMENT
Topic
Name
4+6 =