コード例 #1
0
  @Test(expected = WidgetException.class)
  public void testWaitForAttributeEqualToException() throws WidgetException {
    wd.open(url);
    IElement element = new Element(getDiv("content"));

    element.waitForAttributeEqualTo("randomAttrib", "Goodbye");
  }
コード例 #2
0
  @Test
  public void testWaitForAttributeEqualTo() throws WidgetException {
    wd.open(url);

    IInteractiveElement clickButton = new Button(getButton("attributeChanger"));
    IElement element = new Element(getDiv("content"));

    clickButton.click();
    element.waitForAttributeEqualTo("randomAttrib", "Goodbye");
  }