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

256
Views
How do i use OnClick event in puppeteer

I am trying to parse a webpage, everything works perfect but OnClick events are not getting fetch from that webpage tried everything but got nowhere. Any help would be highly appreciated

Here is the code

const browser = await puppeteer.launch({
    args: [
        "--no-sandbox",
    ],
  });
  const page = await browser.newPage();
  await page.setViewport({ width: 1440, height: 600 })
  await page.goto(url, {
        waitUntil: 'networkidle2',
        timeout: 0,
  });
await page.evaluate({url}) => {
    let focus: any = document.querySelector(".notion-focusable");
    let onclick = focus.onclick;
    console.log(onclick, 'onclick--------');
}

This onclick return undefined although if you goto that exact page for this class you will see the onclick event. Here is the link of the page which i am trying to parse https://dashing-lift-ece.notion.site/My-Secret-Sauce-2b2e9ccbe75d4210aac7688056e33d0c

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!