Ejemplo n.º 1
0
 @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);
 }
Ejemplo n.º 2
0
 @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);
 }