Opening new tab by removing attr target causing page load to fail in cypress 10 #23574
Unanswered
BartoszChrzuszcz
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
In my tests I have couple of places where I need go to the page that opens in new tab. In cypress 9 I was doing it be removing attr target and clicking the element :

MyFuncionName = (provider) => { cy.get('.left-menu', { timeout: 15000 }) .get('[title="Enter Leads"] > a') .click() .get(
[data-cy=${provider}] > a) .invoke('removeAttr', 'target') .click() }
And it was working pretty well, but in cypress 10 I am receiving an page load page loaded in red, but I can see the page is loaded
Is there a way to make it work in CY10?
Many thanks,
Bartosz
Beta Was this translation helpful? Give feedback.
All reactions