@Test(expected = WidgetException.class) public void testGetLocationYException() throws WidgetException { wd.open(url); IElement element = new Element(getButton("zzztestWaitButton")); int val = -1; val = element.getLocationY(); Assert.assertNotEquals(-1, val); }
@Test public void testGetLocationY() throws WidgetException { wd.open(url); IElement element = new Element(getButton("testWaitButton")); int val = -1; val = element.getLocationY(); Assert.assertNotEquals("Test that getLocationY returned an int value", -1, val); }