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

234
Views
Pending operations in playwright on nodejs

I'm trying to get a new page at the moment of clicking on the link:

await test.step(`Step name`, async () => {
    const [newPage] = await Promise.all([ 
        context.waitForEvent('page'), 
        page.click('//span[normalize-space(@title)=\'Bup\']')
    ]);
}

And I get this page. Further operations with this instance are successful. But after 30 seconds the test ends with the following error:

Timeout of 30000ms exceeded.
Pending operations: 
    - browserContext.waitForEvent at "path to the file":48:21
    - at <unknown>

I will assume that it is related to a promise, but I do not understand what exactly the problem is. Help is needed. Playwright v14.0, nodejs v16.7.0. I run the tests with the following command: npx playwright test tests/diag.spec.mjs --headed

A strange observation. When I run it in debug mode, there is no such error :

PWDEBUG=1 npx playwright test tests/diag.spec.mjs
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Ok, I found the answer, but it's a little weird. You need to increase the timeout in the playwright config:

https://github.com/microsoft/playwright/issues/8268

Also you can add test.slow() https://playwright.dev/docs/api/class-test#test-slow

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!