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

112
Vistas
Webdriver io - Getting Cannot read properties of undefined (reading 'click')

Getting Cannot read properties of undefined (reading 'click')

it('Checkbox', async () => {
    browser.url('https://rahulshettyacademy.com/AutomationPractice/')
    const element = await $$("input[type='checkbox']")
    browser.pause(3000)
    await element[1].click()
    console.log(await element[1].isSelected())
    browser.saveScreenshot('screenshot.png')
})
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

This error tells you that it's not possible to read the element .click from element[1] because there's nothing in element[1] - it is null because there's no second element in that array. If you are unsure of the structure inside of element you could do console.log(element), or console.log(JSON.stringify(element)).

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