title: How to check a text contains a certain character within selenium
body: <p>I have a method below where I retrieve a HTML tag:</p>
  
  <pre><code>    public void CheckEmailDisplayed()
      {
          var email = _driver.FindElement(ConfirmationResponsiveElements.ViewEmail);
  
      }
  </code></pre>
  
  <p>ViewEmail is below:</p>
  
  <pre><code>public static By ViewEmail =&gt; By.ClassName("confirmation-banner__text");
  </code></pre>
  
  <p>The HTML it corresponds to is:</p>
  
  <pre><code>&lt;div class="confirmation-banner__text firefinder-match"&gt;
  &lt;p&gt;
   We've sent an email to
  &lt;strong&gt;firstname@xxx.com&lt;/strong&gt;
  &lt;/p&gt;
  &lt;p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>What I want to do is be able to use the variable <code>email</code> to check that the text contains an @. This is to help determine an email address is displayed. How can this be achieved?</p>
  
  <p>Thanks </p>