driver = getDriver(SampleApps.uiCatalogCap());
}
private UIATextField getTextField() {
String name = "TextFields, Uses of UITextField";
Criteria c1 = new TypeCriteria(UIATableCell.class);
Criteria c2 = new NameCriteria(name);
Criteria c = new AndCriteria(c1, c2);
UIAElement element = driver.findElement(c);
element.tap();
Criteria
fieldC =
new AndCriteria(new TypeCriteria(UIATextField.class), new NameCriteria("Normal"));
UIATextField textfield = (UIATextField) driver.findElement(fieldC);
return textfield;
}