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

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

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

    clickButton.click();
    element.waitForAttributeNotEqualTo("randomAttrib", "Hello");
  }