Skip to content

feat: add fast grid cell dump methods to GridElement#8513

Draft
Artur- wants to merge 1 commit intomainfrom
grid-dump-cells
Draft

feat: add fast grid cell dump methods to GridElement#8513
Artur- wants to merge 1 commit intomainfrom
grid-dump-cells

Conversation

@Artur-
Copy link
Member

@Artur- Artur- commented Jan 22, 2026

Add three new methods to GridElement for efficient grid cell extraction:

  • dumpVisibleCells(): dumps currently visible cells in one browser round-trip
  • dumpAllCells(): dumps all grid cells by scrolling through pages
  • dumpCells(fromRow, toRow): dumps cells for a specific row range

This addresses the performance issue when testing grid content, reducing browser round-trips from N×M (one per cell) to 1-50 requests depending on grid size, resulting in 20-500x performance improvement.

Only visible columns are included in the output. Hidden columns are filtered out automatically.

Fixes vaadin/testbench#1876

Add three new methods to GridElement for efficient grid cell extraction:
- dumpVisibleCells(): dumps currently visible cells in one browser round-trip
- dumpAllCells(): dumps all grid cells by scrolling through pages
- dumpCells(fromRow, toRow): dumps cells for a specific row range

This addresses the performance issue when testing grid content, reducing
browser round-trips from N×M (one per cell) to 1-50 requests depending on
grid size, resulting in 20-500x performance improvement.

Only visible columns are included in the output. Hidden columns are filtered
out automatically.

Fixes #1876
@sonarqubecloud
Copy link

@yuriy-fix
Copy link
Contributor

@Artur- , would you like to proceed with the change and mark it ready for review or there is anything you would like to adjust in the PR or have a discussion about?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fast Grid Dump

2 participants