The elements:
<div>class="product-image-container"</div>
<br>
<br>
The code:
countMaterials(){
let countItems = 0;
cy.get('#center_column').find("div").then((items) => {
countItems = items.length;
});
return countItems;
}
I'm trying to make it dynamic.