UI Testing failure - No matches found for SearchField
<p>My XCode recorded UI test fails on the second line:</p>

<pre><code>XCUIElement *musicselectviewNavigationBar = app.navigationBars[@"MusicSelectView"];
[[musicselectviewNavigationBar.otherElements childrenMatchingType:XCUIElementTypeSearchField].element tap];
[[musicselectviewNavigationBar.searchFields containingType:XCUIElementTypeButton identifier:@"Clear text"].element typeText:@"Lean"];
</code></pre>

<p>Upon testing I get this error: </p>

<pre><code>UI Testing failure - No matches found for "MusicSelectView" NavigationBar
</code></pre>

<p>Ideas?</p>