コード例 #1
0
  @Test
  public void testWaitForText() throws WidgetException {
    wd.open(url);
    IInteractiveElement clickButton = new Button(getButton("testWaitButton"));
    IElement element = new Element(getDiv("content"));

    clickButton.click();
    element.waitForText();
  }
コード例 #2
0
 @Test(expected = WidgetException.class)
 public void testWaitForTextException() throws WidgetException {
   wd.open(url);
   IElement element = new Element(getDiv("content"));
   element.waitForText();
 }