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

169
Views
Button is clicked, but no js code is triggered

I have a stepwizard where the next button triggers a post request before navigating to next the step.

    await page.click('[data-test-next-step]');
    await page.waitForSelector(['data-test-address-page']);

When I click on the button via page.click(selector) and page.waitForSelector(next-page) nothing happens. However, if I set a waitFor(500) prior to clicking on the next button, it works just fine.

Any idea what this could be? I have already tried waitUntil and all the possible values we can pass to it, but no luck

Thank you!

about 4 years ago · Juan Pablo Isaza
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!