Hi,
I am trying to use IOSAutomator predicates but I am having some difficulties. Here’s a snippet from the app hierarchy (I cleaned a lot of attributes to make it more readable):
<UIATableView name="Empty list" enabled="true" visible="true">
<UIATableCell name="" label="" visible="true">
<UIATextField name="" label="" value="TEST1" visible="true">
</UIATextField>
<UIAButton name="" label="" value="" enabled="true" visible="true">
</UIAButton>
</UIATableCell>
</UIATableView>
<UIATableView name="Empty list" enabled="true" visible="true">
<UIATableCell name="" label="" visible="true">
<UIATextField name="" label="" value="TEST1" visible="true">
</UIATextField>
<UIAButton name="" label="" value="" enabled="true" visible="true">
</UIAButton>
</UIATableCell>
</UIATableView>
I am trying to identify the UIATableView which has a child UIATableCell which has a child UIATextField having the attribute value=“TEST1”. I accessed it using:
driver.findElementByIosUIAutomation(“tableViews()[0].cells()[0]”);
but this is not optimal. What predicate should I use to make it safer?