I have a test that taps on different tab bar buttons. The test fails with below error on iPhone X. But runs successfully on iPhone SE, iPhone 6 and 8 Plus.
what could be the issue?
Failed to scroll to visible (by AX action) Button
func testForScreenShots() {
let app = XCUIApplication()
continueAfterFailure = false
let tabBarsQuery = app.tabBars
tabBarsQuery.buttons["My Shelf"].tap()
}
Thanks Ashish