diff options
author | Olli Tietäväinen <ollit@vaadin.com> | 2019-01-10 13:58:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-10 13:58:06 +0200 |
commit | e66ce65ba9fe51cd2b00ca22f810e49e522ff4f8 (patch) | |
tree | dbdc9ede22d8b6a912534fed5a6b72801eef32f8 | |
parent | 0c77a3eba25312274f1c2618e8df88967a5932db (diff) | |
download | vaadin-framework-e66ce65ba9fe51cd2b00ca22f810e49e522ff4f8.tar.gz vaadin-framework-e66ce65ba9fe51cd2b00ca22f810e49e522ff4f8.zip |
copied waitUntil to selectMenuPath from FW8 (#11415)
-rw-r--r-- | uitest/src/test/java/com/vaadin/tests/tb3/AbstractTB3Test.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/uitest/src/test/java/com/vaadin/tests/tb3/AbstractTB3Test.java b/uitest/src/test/java/com/vaadin/tests/tb3/AbstractTB3Test.java index 4df23a54ba..81d1b48a0b 100644 --- a/uitest/src/test/java/com/vaadin/tests/tb3/AbstractTB3Test.java +++ b/uitest/src/test/java/com/vaadin/tests/tb3/AbstractTB3Test.java @@ -1057,6 +1057,15 @@ public abstract class AbstractTB3Test extends ParallelTest { protected void selectMenuPath(String... menuCaptions) { selectMenu(menuCaptions[0], true); + // Make sure menu popup is opened. + waitUntil(new ExpectedCondition<Boolean>() { + @Override + public Boolean apply(WebDriver webDriver) { + return isElementPresent(By.className("gwt-MenuBarPopup")) + || isElementPresent(By.className("v-menubar-popup")); + } + }); + // Move to the menu item opened below the menu bar. new Actions(getDriver()) .moveByOffset(0, |