Package org.uiautomation.ios.UIAModels

Examples of org.uiautomation.ios.UIAModels.UIAApplication.findElement()


  }

  @Test
  public void findElementOnElementCriteria() throws InterruptedException {
    UIAApplication app = (UIAApplication) driver.findElement(By.tagName("UIAApplication"));
    UIAElement element = app.findElement(new NameCriteria(buttonsName));
    Assert.assertEquals(element.getName(), buttonsName);
    Assert.assertTrue(element instanceof UIATableCell);
  }

  @Test
View Full Code Here


  }

  @Test
  public void findElementOnElementTagName() throws InterruptedException {
    UIAApplication app = (UIAApplication) driver.findElement(By.tagName("UIAApplication"));
    WebElement element = app.findElement(By.tagName("UIATableCell"));
    Assert.assertEquals(element.getAttribute("name"), buttonsName);
    Assert.assertTrue(element instanceof UIATableCell);
  }

  @Test
View Full Code Here

    UIAApplication app = (UIAApplication) driver.findElement(By.tagName("UIAApplication"));

    NameCriteria
        criteria =
        new NameCriteria("sentenceFormat", L10NStrategy.serverL10N, MatchingStrategy.regex);
    UIAElement text = app.findElement(criteria);
    String actual = text.getName();
    Assert.assertEquals(actual, expected);
  }

}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.