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

186
Vistas
How do i get cypress element fixed when detached from the Dom?

Cypress requires elements be attached in the DOM to interact with them.

The previous command that ran was:

cy.get()

This DOM element likely became detached somewhere between the previous and current command.

Common situations why this happens:

  • Your JS framework re-rendered asynchronously
  • Your app code reacted to an event firing and removed the element

You typically need to re-query for the element or add 'guards' which delay Cypress from running new commands.

Here is the block of code I am trying to run.

  }),
    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
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