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

175
Vistas
I get this error when running my index.js file... throw new Error('Execution context was destroyed, most likely because of a navigation.');

I've provided the code below, can you tell me why I would get this error ? I am trying to web-scrape some information from one website to put on a website I am creating, I already have permission to do so. The information I am trying to web-scrape is the name of the event, the time of the event, the location of the event, and the description of the event... I seen this tutorial on YouTube, but for some reason I get this error running ming.

sync function scrapeProduct(url){
  const browser = await puppeteer.launch();
  const page = await browser.newPage();
  page.goto(url);

  const [el] = await page.$x('//*[@id="calendar-events-day"]/ul/li[1]/h3/a');
  const txt = await el.getProperty('textContent')
  const rawTxt = await txt.jsonValue();

  const [el1] = await page.$x('//*[@id="calendar-events-day"]/ul/li[1]/time[1]/span[2]');
  const txt1 = await el1.getProperty('textContent')
  const rawTxt1 = await txt1.jsonValue();

  console.log({rawTxt, rawTxt1});

  browser.close();
}

scrapeProduct('https://events.ucf.edu');
about 4 years ago · Santiago Gelvez
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