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

111
Views
How to trigger a click wherever an HTML element appears with Puppeteer?

I tried

await page.click("div:contains('text')")

but it doesn't work.

Is it not possible to do so? Would I somehow have to grab the wrapper/"parent" of the HTML first, then call a click on it?

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

0

first check your element in not empty then fire click trigger.

  if (!$('#element').is(':empty'))
    {
         document.getElementById("myCheck").click();
    }
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!