Skip to content

GridElement#select should ensure, that the row is scrolled into view before selecting it #8236

@stefanuebe

Description

@stefanuebe

At the moment, grid select does not ensure, that a row, that should be selected, is visible and thus eligible to do so. This behavior can be unexpected, since a lot of other basic TestBenchElement methods ensure, that they are visible, before doing an interaction (like click or sendKeys).

Therefore we should provide this feature also for grid rows. The easiest change would be to simply let getRow(int) do the scroll by changing the internal call to getRow(rowIndex, true) as this would also for other interactions ensure, that the row is visible.

Alternatively select could call scrollIntoView before doing the select itself.

Vaadin 24.9.4

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions