Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我点击我的加号按钮后,如何编写 aUITest以检查我的标签(当前带有文本:)是否2已将其值更改为。3
UITest
2
3
let app = XCUIApplication() let textPredicate = NSPredicate(format: "label = %@", "3") expectationForPredicate(textPredicate, evaluatedWithObject: app.staticTexts["numberOfItemsLabel"], handler: nil) app.buttons["increaseNumberOfItemsButton"].tap()