Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

187
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda