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

100
Vistas
Click on button based on text in table

I need to click on the edit button of a certain text in a table.

For example the table row has the text abc i need to click on the icon-pencil of this particular row text

I have tried:

cy.contains('td', 'abc')
            .scrollIntoView()
            .siblings()
            cy.get('td div').within(() => {
                cy.get('.actions').and('have.class','icon-pencil').click()
                })

but it is not finding the class actions

This is the html:

enter image description here

Please let me know what is wrong. thank you

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

0

You have to do something like this:

cy.contains('td', 'abc')
  .parent('tr')
  .within(() => {
    cy.get('i.icon-pencil').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