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

159
Vistas
Wait for the hidden class to be deleted from the element in puppeteer

I have a puppeteer script There is a div that has a hidden class This class is deleted after a few minutes and the div becomes visible I can select the div but can't click on it until the hidden class is deleted How do I make it wait until it delete this class from the div ?

Thanks for help

about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

Use .waitForFunction. It repeatedly runs specific function in page context and returns a Promise that resolves when this functions returns a truthly value. Provide it with a function that returns truthly value when your target div doesn't have that class.

about 4 years ago · Juan Pablo Isaza Denunciar

0

Something like:

await page.waitForFunction(() => !document.querySelector('div .hidden_class'))
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