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

227
Views
Cypress - I don't know which selector to choose for a list with more options

I have a dropdown list and several names are displayed. I don't know how to call cypress to select one of the options from the dropdown menu

<div class="dx-item dx-list-item" role="option" aria-selected="false">
  <div class="dx-template-wrapper dx-item-content dx-list-item-content">
    <span style="color: grey;">charlie sheen</span>
  </div>
</div>
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

The class dx-item looks like a good candidate.

cy.contains('.dx-item[role="option"]', 'charlie sheen').click()

Make sure you have opened the dropdown. You haven't mentioned it, so presume you have already done that.

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!