@Test(expected = WidgetException.class) public void testIsAttributePresentException() throws WidgetException { wd.open(url); IElement element = new Element(getDiv("myContent")); element.isAttributePresent("randomAttrib"); }
@Test public void testIsAttributePresentFalse() throws WidgetException { wd.open(url); IElement element = new Element(getDiv("content")); Assert.assertFalse( "Test isAttributePresent returns false", element.isAttributePresent("someAttribute")); }
@Test public void testIsAttributePresentTrue() throws WidgetException { wd.open(url); IElement element = new Element(getDiv("content")); Assert.assertTrue( "Test isAttributePresent returns true", element.isAttributePresent("randomAttrib")); }