IOS app not responding when writing UI

I am trying to record a UI test for my iPad app. When I click on a tab bar item to navigate to another screen, record my actions correctly, but my app is not responding at all. Subsequently, when I run my test, it actually goes to the corresponding screen.

Any idea what might be causing this behavior?

Thank.

- (void)testAddActivity {
    XCUIElementQuery *tabBar = [[XCUIApplication alloc] init].tabBars;
    XCUIElement *activitiesButton = tabBar.buttons[@"Activities"];
    [activitiesButton tap]; //App does not responding in recording
}

      

+3


source to share





All Articles