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

875
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
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