https://cypress.io logo
Yeah, the not being able to open a new tab/window ...
# e2e-testing
f
Yeah, the not being able to open a new tab/window issue comes up on here often. Some folks on here have has success with
.invoke('removeAttr', 'target')
, so for you it would be:
Copy code
cy.get("form center:first-child input[tabindex='0']")
   .invoke('removeAttr', 'target')
   .click()
Also, consider adding some test ids to your application if possible