Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

399
Views
Cómo atravesar del comando padre a hijo (o encadenar padre a hijo)

Vaya, parece que está intentando llamar a un comando secundario antes de ejecutar un comando principal.

Escribiste un código que se parece a esto:

 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")

Un comando hijo debe estar encadenado después de un padre porque opera en un sujeto anterior.

Por ejemplo, si estuviéramos emitiendo el comando secundario, haga clic en...

 cy .get('button') // parent command must come first .click() // then child command comes second
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Use cy.get('main.overlay:nth-child(1)...) en lugar de cy.find('main.overlay:nth-child(1)...') .

El comando de búsqueda siempre se usa después de un comando anterior, ref docs

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!