UI Test unable to identify UIAlertViewStylePlainTextInput

My Xcode is crashing when I try to recode UI test that has alert view with text input. How do I enable accessibiliry on alertview text box ?

It recodes up to this point and xCode crashing..



XCUIApplication *app = [[XCUIApplication alloc] init];

[app.navigationBars[@"Add Contacts"].buttons[@"addprivate"] tap];

[app.alerts[@"Add xxxxx Contact"].staticTexts[@"Add xxxx Contact"] tap];

<< Eliment unable to identify UIAlertView TextInput text box. XCode is crashing from this point>>>>


1. How do I give accessibility Title for this input textbox ?

UI Test unable to identify UIAlertViewStylePlainTextInput
 
 
Q