Possible to count actions and then perform reverse action? #24118
Unanswered
mackr0
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm just learning how this all works but wondering if it's possible and how it might be done.
I'm using the tab key option on https://www.webtips.dev/webtips/cypress/how-to-press-tabs-in-cypress which takes me to a skip nav link
cy.get('body').tab()
cy.focused().should('have.class', 'skip-to-content')
I want to count the number of times it takes to tab until i return to the skip to content element, and then count the number of times it takes to do it in reverse (shift + tab) and make sure that the count is the same.
Is it possible to do this in cypress?
Beta Was this translation helpful? Give feedback.
All reactions