Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

510
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!