I am new to Cypress and am trying to cycle through a slideshow excluding cloned duplicates. I'm using .each() for indexing in cypress but that doesn't work. Below is my code
if (index != 0 && index >= 22) { //do something } else { //do something }
Here is a sample snapshot of my html code:
Can anyone come up with the logic to only loop to the original slide?
You can use
:not()
Pseudo selectorOr if you prefer to inspect inside the loop, use the
.not()
method