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

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

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