mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-15 14:56:41 +00:00
Bug 4339: Explicitly handling scroll into view when selecting table rows
This commit is contained in:
1 parent
67a01d6a69
commit
75ec2d82b3
1 file changed
+11
-2
+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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user