// that doesn't throw. The element isn't visible, but it's still accessible with UIAutomation.
String s = element.getName();
Assert.fail("cannot access stale elements");
} finally {
UIAButton
but =
driver.findElement(
new AndCriteria(new NameCriteria("Back"), new TypeCriteria(UIAButton.class)));
but.tap();
}
}