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

338
Vistas
How can I Click a specific Button with puppeteer?

I want to click this button via pupeteer, but I cant manage to get it done.

This is the element :

 <div class="wp-block-rh-contact-form-input is-form-type-submit">
            <input class="input-field input-submit" type="submit" value="Jetzt absenden!">
            
                    </div>

And this is my attempt to click the signup button:

const signup = await page.waitForXPath('//input[@type="submit"]')
await signup[0].click()

The Error I am getting is: "TypeError: Cannot read property 'click' of undefined"

I hope someone can help me bc I have no idea why it comes out undefined bc it seems like i did everything correctly

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

0

Can you try with full Xpath?

const el = await page.$x('YOUR FULL XPATH');
await el[0].click();
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