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

408
Vistas
How traverse from parent to child command (Or chain parent to child)

Oops, it looks like you are trying to call a child command before running a parent command.

You wrote code that looks like this:

cy.find("main.overlay:nth-child(1) > div.widget.position-relative:nth-child(7) > div.widget__overlay.position-relative > form.widget__content > button.btn.btn-submit.btn-primary.mt-4.btn-bottom")

A child command must be chained after a parent because it operates on a previous subject.

For example - if we were issuing the child command click...

cy
  .get('button') // parent command must come first
  .click()       // then child command comes second
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Use cy.get('main.overlay:nth-child(1)...) instead of cy.find('main.overlay:nth-child(1)...').

The find command is always used after a previous command, ref docs

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