👩💻 Join our community of thousands of amazing developers!
Sometimes your application wants to open a new tab or a new browser window. Cypress injects its spec into the first window, thus it "loses" your application and cannot control the second tab. How to handle this case depends on how the application opens the second tab. Here are links to the solutions:Anchor link with targetIf your application contains a link element like <a href="..." target="_blank">, see Deal with target=_blank. The test can remove the target attribute or change it to _self bef...