瀏覽代碼

copied waitUntil to selectMenuPath from FW8 (#11415)

tags/7.7.16
Olli Tietäväinen 5 年之前
父節點
當前提交
e66ce65ba9
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 9 行新增0 行删除
  1. 9
    0
      uitest/src/test/java/com/vaadin/tests/tb3/AbstractTB3Test.java

+ 9
- 0
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,

Loading…
取消
儲存