0

I am working on UI testing in Xcode using Swift and the Kif framework. My question is about AccessibilityLabels. The accessibility labels are dynamic and change, is there a way to use different labels that are static to identify buttons and other actions that take place?

For Example:

 tester().tapViewWithAccessibilityLabel("Apr 29, 2015") 

Where "Apr 29, 2015" is the accessibility label but it changes every day. What other label or identifier can I use?

4

1 回答 1

1

使用可访问性标识符。标识符应该是唯一的。导入 KIF/IdentifierTests

于 2015-07-20T06:03:03.163 回答