Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

258
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda