これは私の単純ですUITest
(tabbarcontrollerのタブの順序をカスタマイズしています):
func testIsOrderOfTabsSaved() {
let app = XCUIApplication()
let tabBarsQuery = app.tabBars
tabBarsQuery.buttons["More"].tap()
app.navigationBars["More"].buttons["Edit"].tap()
tabBarsQuery.buttons["Takeaway"].swipeLeft()
tabBarsQuery.buttons["In Restaurant"].swipeLeft()
//here, how to get position of moved button with text "In Restaurant"?
注:
インデックスXCUIElement
から取得できます。XCUIElementQuery
他の方法でこれを行うことはできますか?