Appium 1.6 IOS9.3
我以前经常找到iOS元素,比如:
findElementByIosUIAutomation(".tableViews()[0].cells()[1].collectionViews()[0].cells()[0]")但是在XCUITest中,如何使用这样的findElementsByIosNsPredicate呢?如何编写谓词字符串?
请救救我!
发布于 2017-06-15 18:40:02
也许,您可以尝试使用以下内容:
XCUIApplication().tables.element(boundBy: 0).cells.element(boundBy: 1).collectionViews.element(boundBy: 0).cells.element(boundBy: 0)但我强烈建议将accessibilityIdentifier添加到UI元素中,并直接使用它:
XCUIApplication().cells["cellAccessibilityIdentifier"]https://stackoverflow.com/questions/44494272
复制相似问题