Exemplo n.º 1
0
  private void waitForQuickOutlineOpened() {
    (new WebDriverWait(IDE.driver(), 30))
        .until(
            new ExpectedCondition<Boolean>() {

              @Override
              public Boolean apply(WebDriver d) {
                return d.findElement(By.id(QUICK_OUTLINE_PANEL)) != null;
              }
            });
  }
Exemplo n.º 2
0
  private void waitForQuickOutlineClosed() {
    (new WebDriverWait(IDE.driver(), 30))
        .until(
            new ExpectedCondition<Boolean>() {

              @Override
              public Boolean apply(WebDriver d) {
                try {
                  driver.findElement(By.id(QUICK_OUTLINE_PANEL));
                  return false;
                } catch (NoSuchElementException e) {
                  return true;
                }
              }
            });
  }
Exemplo n.º 3
0
 /** @param name */
 private void assertElementPresent(String name) {
   assertNotNull(
       IDE.driver()
           .findElement(
               By.xpath("//div[@id='ideQuickOutlineTree']//span[text()='" + name + "']")));
 }