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