Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

511
Visualizações
How to I select a popup window in cypress?

I don't need to create a window, I need to select one that the browser automatically opened.

How can I do this in cypress?

it.only('Login with Torus', () => {
        cy.visit('http://localhost:3000/auth');
        cy.get('button.button-torus span').click();
        // need to target new popup window here from 3rd party auth
        cy.get('input#passwordless-email').type('ettinger+test@gmail.com');
    });

This is a 3rd party auth service called Torus. https://app.tor.us/

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

From Cypress Docs

Permanent trade-offs:

  • There will never be support for multiple browser tabs.
  • You cannot use Cypress to drive two browsers at the same time.

"Because Cypress runs in the browser, it will never have multi-tabs support. We do have access to the browser automation APIs to actually switch tabs, but there is no reason for us to ever expose them."

Same doc also leads to few examples on working this around:

  • Tab Handling and Links
  • Logging In
about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda