@Test public void testGetAttribute() throws WidgetException { wd.open(url); IElement element = new Element(getDiv("content")); String expected = "Hello"; Assert.assertEquals( "Test getAttribute returns expected string", expected, element.getAttribute("randomAttrib")); }