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

197
Views
How to control multiple tabs Puppeteer in same time

I need to control multiple tabs at same time. I tried to open 2 pages with the following code:

const page = await browser.newPage();
await page.goto('Mylink');
      
const page2 = await browser.newPage();
await page2.goto('Mylink');

But in this case it just controls the tab that is currently open, how could I control the two tabs in same time?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Maybe this?

  const [page, page2] = await Promise.all([browser.newPage(), browser.newPage()]);
  await Promise.all([page.goto('Mylink'), page2.goto('Mylink')]);
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!