summaryrefslogtreecommitdiffstats
path: root/testbench-api
diff options
context:
space:
mode:
Diffstat (limited to 'testbench-api')
-rw-r--r--testbench-api/src/main/java/com/vaadin/testbench/elements/GridElement.java7
-rw-r--r--testbench-api/src/main/java/com/vaadin/testbench/elements/GridLayoutElement.java7
2 files changed, 12 insertions, 2 deletions
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(