aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/test/java
diff options
context:
space:
mode:
authorDenis <denis@vaadin.com>2016-12-19 10:55:05 +0200
committerPekka Hyvönen <pekka@vaadin.com>2016-12-19 10:55:05 +0200
commitd3d8abd5383bda40b8fb6e957b50025ba761d5f0 (patch)
tree2dfb298069e2d97dfd33113b3f8a637607b90779 /uitest/src/test/java
parent6b51788ee7c2a8b147744bc11d220fb3ed896672 (diff)
downloadvaadin-framework-d3d8abd5383bda40b8fb6e957b50025ba761d5f0.tar.gz
vaadin-framework-d3d8abd5383bda40b8fb6e957b50025ba761d5f0.zip
Fix Grid focusable test. (#8029)
* Fix Grid focusable test.
Diffstat (limited to 'uitest/src/test/java')
-rw-r--r--uitest/src/test/java/com/vaadin/tests/focusable/GridFocusableTest.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/uitest/src/test/java/com/vaadin/tests/focusable/GridFocusableTest.java b/uitest/src/test/java/com/vaadin/tests/focusable/GridFocusableTest.java
index 96a19902eb..85aa8bea11 100644
--- a/uitest/src/test/java/com/vaadin/tests/focusable/GridFocusableTest.java
+++ b/uitest/src/test/java/com/vaadin/tests/focusable/GridFocusableTest.java
@@ -1,5 +1,9 @@
package com.vaadin.tests.focusable;
+import org.openqa.selenium.NoSuchElementException;
+import org.openqa.selenium.WebElement;
+
+import com.vaadin.testbench.By;
import com.vaadin.testbench.customelements.GridElement;
import com.vaadin.testbench.elements.GridElement.GridCellElement;
import com.vaadin.tests.components.grid.basics.GridBasics;
@@ -25,4 +29,10 @@ public class GridFocusableTest extends AbstractFocusableComponentTest {
protected GridCellElement getFocusElement() {
return $(GridElement.class).first().getCell(0, 0);
}
+
+ @Override
+ protected WebElement getMenuElement(String menuCaption)
+ throws NoSuchElementException {
+ return super.getMenuElement(menuCaption).findElement(By.xpath(".."));
+ }
}