Bug 4339: Explicitly handling scroll into view when selecting table rows

This commit is contained in:
Steffen Schaefer committed 2018-04-24 17:42:24 +02:00
1 parent 67a01d6a69
commit 75ec2d82b3
1 file changed
+11 -2
@@ -79,10 +79,19 @@ public class DataEntryPO extends CellTableRowPO {
protected Action getSelectAction() {
final Actions actions = new Actions(this.driver);
moveToUpperLeftCorner(actions, getElementForSelect());
final WebElement elementForSelect = getElementForSelect();
moveToUpperLeftCorner(actions, elementForSelect);
actions.click();
return actions.build();
final CompositeAction compositeAction = new CompositeAction();
compositeAction.addAction(new Action() {
@Override
public void perform() {
scrollToView(elementForSelect);
}
});
compositeAction.addAction(actions.build());
return compositeAction;
}
/**