CustomGridElement grid = getGridElement();
+ selectMenuPath("Component", "Columns", "Simple resize mode");
+ sleep(250);
+
List<WebElement> handles = grid.findElements(By.className("v-grid-column-resize-handle"));
WebElement handle = handles.get(1);
- Actions drag1 = new Actions(getDriver()).moveToElement(handle).clickAndHold();
+ // add 1px because of a glitch on IE9 and IE10 in our testing
+ // environment
+ Actions drag1 = new Actions(getDriver()).moveToElement(handle)
+ .moveByOffset(1, 0).clickAndHold();
Actions drag2 = new Actions(getDriver()).moveByOffset(-50, 0);
Actions drag3 = new Actions(getDriver()).moveByOffset(100, 0);
Actions dragEndAction = new Actions(getDriver()).release().moveToElement(grid);
- selectMenuPath("Component", "Columns", "Simple resize mode");
- sleep(250);
-
drag1.perform();
sleep(500);
drag2.perform();
import com.vaadin.testbench.By;
import com.vaadin.testbench.commands.TestBenchElementCommands;
import com.vaadin.testbench.elements.TreeTableElement;
+import com.vaadin.testbench.parallel.BrowserUtil;
import com.vaadin.tests.tb3.MultiBrowserTest;
/**
// expand the first root element
treeTable.getCell(0, 0)
- .findElement(By.className("v-treetable-treespacer")).click();
+ .findElement(By.className("v-treetable-treespacer")).click();
treeTable = $(TreeTableElement.class).first();
// wait for the scrollposition element to disappear
// scroll far enough down to drop the first row from the cache
// but not far enough to reach the last row
- scrollable.scroll(1692);
+ if (BrowserUtil.isChrome(getDesiredCapabilities())) {
+ // Chrome 56 requires different scroll position
+ scrollable.scroll(846);
+ } else {
+ scrollable.scroll(1692);
+ }
// wait for the scrollposition element to disappear
waitUntilNot(ExpectedConditions.visibilityOfElementLocated(
// expand the first root element
treeTable.getCell(0, 0)
- .findElement(By.className("v-treetable-treespacer")).click();
+ .findElement(By.className("v-treetable-treespacer")).click();
// wait for the scrollposition element to disappear
waitUntilNot(ExpectedConditions.visibilityOfElementLocated(
// expand the second root element
treeTable.getCell(201, 0)
- .findElement(By.className("v-treetable-treespacer")).click();
+ .findElement(By.className("v-treetable-treespacer")).click();
// wait for the scrollposition element to disappear
waitUntilNot(ExpectedConditions.visibilityOfElementLocated(
// collapse the second root element
treeTable.getCell(201, 0)
- .findElement(By.className("v-treetable-treespacer")).click();
+ .findElement(By.className("v-treetable-treespacer")).click();
// wait for the scrollposition element to disappear
waitUntilNot(ExpectedConditions.visibilityOfElementLocated(