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