aboutsummaryrefslogtreecommitdiffstats
path: root/testbench-api
diff options
context:
space:
mode:
authorAhmed Ashour <asashour@yahoo.com>2017-10-27 17:44:19 +0200
committerPekka Maanpää <pekkamaa@vaadin.com>2017-10-27 18:44:19 +0300
commitfb6e81221bd1b5ab0b81a3ee6c82e4286df57264 (patch)
tree4add58d9872688a1a72d8cfc15fd0dd0d47dc7b4 /testbench-api
parent01c93a6aef27ef562267d7966c6386ecaa6c1f6b (diff)
downloadvaadin-framework-fb6e81221bd1b5ab0b81a3ee6c82e4286df57264.tar.gz
vaadin-framework-fb6e81221bd1b5ab0b81a3ee6c82e4286df57264.zip
Use lambda with Handlers (#10229)
Also improve naming by replacing one-letter variable names.
Diffstat (limited to 'testbench-api')
-rw-r--r--testbench-api/src/main/java/com/vaadin/testbench/elements/GridElement.java5
1 files changed, 2 insertions, 3 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 61da7255ff..a7253b7229 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
@@ -462,10 +462,9 @@ public class GridElement extends AbstractComponentElement {
Optional<WebElement> toggleButton = getDriver()
.findElement(By.className("v-grid-sidebar-content"))
.findElements(By.className("column-hiding-toggle")).stream()
- .filter(e -> e.getText().equals(toggleCaption))
- .findAny();
+ .filter(element -> element.getText().equals(toggleCaption)).findAny();
if (toggleButton.isPresent()) {
- toggleButton.ifPresent(e -> e.click());
+ toggleButton.ifPresent(element -> element.click());
} else {
throw new IllegalArgumentException(
"No column hiding toggle with caption '" + toggleCaption