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

228
Vistas
Puppeteer TimeoutError: Race Condition of FileChooser and Click

There seems to be a race condition between "waitForFileChooser" and "click" when I try to automate uploading files according to the puppeteer's documentation of API.

Sometimes it works, sometimes it doesn't, so how can I solve this issue?

TimeoutError: waiting for file chooser failed: timeout 30000ms exceeded.

const [fileChooser] = await Promise.all([
  page.waitForFileChooser(),
  page.click('#upload-file-button'), // a button that triggers file selection
]);
await fileChooser.accept(['someFile.pdf']);
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You can increase the timeout for waitForFileChooser (see https://pub.dev/documentation/puppeteer/latest/puppeteer/Page/waitForFileChooser.html):

// ...
page.waitForFileChooser({timeout: 50000}),
// ...
about 4 years ago · Juan Pablo Isaza Denunciar
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