如何在检查按钮是否启用后点击按钮?我在这里找到了这个样本,但它对我的情况不起作用。Delay/WaitinatestcaseofXcodeUItesting部分代码:letapp=XCUIApplication()letbutton=app.buttons["Tapme"]letexists=NSPredicate(format:"exists==1")expectationForPredicate(exists,evaluatedWithObject:button){button.tap()returntrue}waitForExpectationsWithTimeout(5,han