title: How to test that staticTexts contains a string using XCTest
body: <p>In Xcode UI testing, how do I test that staticTexts contains a string?  </p>
  
  <p>In the debugger, I can run something like this to print out all the content of staticTexts: <code>po app.staticTexts</code> . But how do I test if a string exists anywhere within all of that content?  </p>
  
  <p>I can check for the existence of each staticText doing something like <code>app.staticTexts["the content of the staticText"].exists</code>? but I have to use the exact content of that staticText.  How can I use only a string which may be only a part of that content?  </p>