title: I am writing Appium test for IOS in C# I have an assertion that requires me to use text as an assertion
body: <p>I am writing Appium tests for iOS in C#. I have an assertion that requires me to use text.</p>
  <p><code>&quot;AddressCC&quot;</code> is the correct accessibility Id for the field that gets populated and the text for the populated field is <code>&quot;123 Main Street&quot;</code>. I want to assert that the field is being populated with <code>&quot;123 Main Street&quot;</code>. The below comes back with Expected True But was False.</p>
  <pre class="lang-cs prettyprint-override"><code>String actualString = (_IOSdriver.FindElementsByAccessibilityId(&quot;AddressCC&quot;)).ToString();
  
  String expectedString = &quot;123 Main Street&quot;;
  
  Assert.IsTrue(actualString.Contains(expectedString));
  </code></pre>