@Test(expected = WidgetException.class) public void testGetCssValueException() throws WidgetException { wd.open(url); IElement element = new Element(getButton("zzzmyInvisibleButton")); Assert.assertEquals( "Test that getCssValue returns the correct attribute", "hidden", element.getCssValue("visibility")); }