コード例 #1
0
  @Test(expected = WidgetException.class)
  public void testWaitForNotVisibleException() throws WidgetException {
    wd.open(url);

    IElement element = new Element(getButton("visibilityTest"));
    element.waitForNotVisible();
  }
コード例 #2
0
  @Test
  public void testWaitForNotVisible() throws WidgetException {
    wd.open(url);

    IInteractiveElement clickButton = new Button(getButton("nonVisibilityTest"));
    IElement element = new Element(getButton("visibilityTest"));

    clickButton.click();
    element.waitForNotVisible();
  }