From 87e7887bc02f1e4c7cddbb981d3b042d83e7c41e Mon Sep 17 00:00:00 2001 From: Teemu Suo-Anttila Date: Mon, 8 May 2017 13:40:02 +0300 Subject: Add since tags for 8.0.6 --- .../src/main/java/com/vaadin/testbench/elements/GridElement.java | 7 +++++++ .../main/java/com/vaadin/testbench/elements/GridLayoutElement.java | 7 +++++-- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'testbench-api/src/main/java/com/vaadin/testbench') diff --git a/testbench-api/src/main/java/com/vaadin/testbench/elements/GridElement.java b/testbench-api/src/main/java/com/vaadin/testbench/elements/GridElement.java index 945678ac2d..5371d81273 100644 --- a/testbench-api/src/main/java/com/vaadin/testbench/elements/GridElement.java +++ b/testbench-api/src/main/java/com/vaadin/testbench/elements/GridElement.java @@ -444,6 +444,13 @@ public class GridElement extends AbstractComponentElement { return getSubPart("#details[" + rowIndex + "]"); } + /** + * Toggles the column visibility. Column is identified by its hiding toggle + * caption. + * + * @param toggleCaption + * @since 8.0.6 + */ public void toggleColumnHidden(String toggleCaption) { if (!isElementPresent(By.className("v-grid-sidebar-content"))) { // Open sidebar menu diff --git a/testbench-api/src/main/java/com/vaadin/testbench/elements/GridLayoutElement.java b/testbench-api/src/main/java/com/vaadin/testbench/elements/GridLayoutElement.java index 4f3106356a..395f6d1af9 100644 --- a/testbench-api/src/main/java/com/vaadin/testbench/elements/GridLayoutElement.java +++ b/testbench-api/src/main/java/com/vaadin/testbench/elements/GridLayoutElement.java @@ -25,7 +25,8 @@ public class GridLayoutElement extends AbstractLayoutElement { /** * Gets the total number of rows in the layout. * - * @return the number of rows in the layout, + * @return the number of rows in the layout + * @since 8.0.6 */ public long getRowCount() { Long res = (Long) getCommandExecutor() @@ -40,7 +41,8 @@ public class GridLayoutElement extends AbstractLayoutElement { /** * Gets the total number of columns in the layout. * - * @return the number of columns in the layout, + * @return the number of columns in the layout + * @since 8.0.6 */ public long getColumnCount() { Long res = (Long) getCommandExecutor() @@ -62,6 +64,7 @@ public class GridLayoutElement extends AbstractLayoutElement { * @return the cell element at the given position * @throws NoSuchElementException * if no cell was found at the given position + * @since 8.0.6 */ public WebElement getCell(int row, int column) { WebElement res = (WebElement) getCommandExecutor().executeScript( -- cgit v1.2.3