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

185
Views
¿Cómo arreglo el elemento de ciprés cuando lo desacoplo del Dom?

Cypress requiere elementos adjuntos en el DOM para interactuar con ellos.

El comando anterior que se ejecutó fue:

cy.get()

Este elemento DOM probablemente se separó en algún lugar entre el comando anterior y el actual.

Situaciones comunes por las que sucede esto:

  • Su marco JS se volvió a renderizar de forma asíncrona
  • El código de su aplicación reaccionó a un evento activado y eliminó el elemento

Por lo general, debe volver a consultar el elemento o agregar 'protectores' que retrasan que Cypress ejecute nuevos comandos.

Aquí está el bloque de código que estoy tratando de ejecutar.

 }), it('Add-Income', ()=> { cy.get('.add_btn').click() cy.get(':nth-child(1) > .input_container > input').type('45000') cy.get(':nth-child(2) > select').select('4') cy.get(':nth-child(3) > select').select('32') cy.get(':nth-child(4) > .input_container > input').invoke('removeAttr','type').type('12-12-1990{enter}') //cy.get('.transaction_btn > button').click() cy.get('.title > span').click({force: true}) }), it('Add-Expenditure', ()=> { cy.get('.add_btn').click() cy.get('.overlay_card > :nth-child(4)').click() cy.get(':nth-child(1) > .input_container > input').type('45000') cy.get(':nth-child(2) > select').select('4') cy.get(':nth-child(3) > select').select('32') cy.get(':nth-child(4) > .input_container > input').invoke('removeAttr','type').type('12-12-1990{enter}') //cy.get('.transaction_btn > button').click() })
about 4 years ago · Juan Pablo Isaza
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!