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

200
Views
How to select latest item in lazy loaded dropdown list using Cypress?

I'm using VueJS and Cypress to test e2e. I also use Vuetify's dropdown:

<div class="col-md-6" id="selecter">
  <v-select
    v-model="courseSelection.value"
    :items="courseOptions"
    :error-messages="courseSelection.errors"
    :disabled="courseSelection.disabled"
    label="select"
    required
    outlined
    dense
  />
</div>

The courseOptions contains a lot of options with lazy-loading, meaning it loads if you scroll down. I'm trying to get latest item on that list, but I can't seem to figure a way to scroll down and so it could be loaded. What I tried:

cy.get('#selecter').click(); 
cy.get(".v-menu__content.theme--light.v-menu__content--fixed").eq(0).scrollIntoView();
cy.get('div[role="listbox"]').find('div[role="option"]').eq(-1).click();

But it selects only the latest loaded item and not the actual latest item. How it can be done?

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