@Test(expected = WidgetException.class) public void testWaitForAttributeEqualToException() throws WidgetException { wd.open(url); IElement element = new Element(getDiv("content")); element.waitForAttributeEqualTo("randomAttrib", "Goodbye"); }
@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"); }