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

889
Visualizações
How can select item from drop-down menu in cypress?

I have two questions. First, the main one is how do I select one specific entry from the drop-down menu? For example test:

Drop down menu

And the code:

DOM objects

The second question concerns a tutorial that would explain to me how to search for and assign DOM objects to test them. I'm a little lost in it ...

And this is the code for do it better select:

Code for better select

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

To select an item from a drop down menu in Cypress you need select()

e.g.

cy.get('#ID_of_drop_down_menu').select('test')

In your case you could try

cy.get('#dx-0d913c9b-e881-238a-e7ba-4254647fb326').select('test')

or via class:

cy.get('.dx-scrollview.dx-visibility-change-handler.dx-_ical').select('test')

{edit}Could you possibly expand the HTML so I can see what selector you could use for the drop down menu.

{edit2}About your 2nd question: A good "training tool" is Selenium IDE recorder. You can record clicks on a website and it will show you the CSS selector it has chosen to address the element you clicked on.

about 4 years ago · Juan Pablo Isaza Relatório
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