Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

873
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!