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

204
Visualizações
Why is the dynamic ID value not changing in Cypress test runner but it changes every time in normal browser window?

There is a checkbox on the webpage which has ID attribute that changes every time the page is reloaded but in Cypress test runner browser window the id attribute does not change even if I run the test multiple times, it is fixed to "ag-7864-input".

I am selecting the checkbox using: cy.get('#ag-7864-input').click()

and it should fail the test because the id attribute is dynamic and changes every time but the test passes. While inspecting the element in test runner the id is shown: "ag-7864-input"


<input class="ag-input-field-input ag-checkbox-input" type="checkbox" id="ag-10102-input" tabindex="-1">
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