iOS XCUITests элемент доступа по доступности

Как я могу утверждать, что кнопка существует по его accessibilityLabel или идентификатору?

func testExitsButton() {
    XCTAssertTrue(app.windows.containing(.button, identifier: "Button Text").element.exists)
    XCTAssertTrue(app.buttons["Button Text"].exists)
    XCTAssertTrue(app.buttons["test"].exists) <- I want this, instead of accessing the text property I want by specific id, maybe the text property override the accessibilityLabel?
}

Ответы на вопрос(3)

Ваш ответ на вопрос