@Test public void testGetInnerHtml() throws WidgetException { wd.open(url); IElement e = new Element("someText"); String html = e.getInnerHTML(); Assert.assertEquals("Here is some text", html); }