https://cypress.io logo
```js cy.get('.day.active') .invoke('index') ....
# e2e-testing
g
Copy code
js
cy.get('.day.active')
  .invoke('index')
  .then((k) => {
    cy.get('.day')
      .eq(k + 1)
      .should('have.text', '4')
  })