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