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

216
Views
Cypress I Load all data in table with lazy loading and find the count of row in table using cypress

I have a scenario where i need to find the count of rows in the table. The data on the table keep on loading once I scroll down. I need to write a logic to scroll till all the data loads and then get the count of rows.

One solution I have is to get the page height before scrolling to the bottom and then take the page height and apply the while loop to run the loop until before and after loop is equal. One issue I am facing in this is I am unable to get the page height. Is there a way to the page height?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

The simplest way to get correct height is to get all height values found on document, or documentElement, and use the highest one'

var body = document.body,
    html = document.documentElement;

var height = Math.max( body.scrollHeight, 
                       body.offsetHeight, 
                       html.clientHeight,  
                       html.scrollHeight, 
                       html.offsetHeight );

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!