title: Selenium FindBy to find a header tag by it's text
body: <p>I need to use the FindBy to get the H5 element containing the text "ALLEN VERSION" in the below HTML:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="showAboutContent" class="modal fade in" style="display: block;" aria-hidden="false"&gt;
  &lt;div class="modal-dialog" style="width: 550px;"&gt;
  &lt;div class="modal-content"&gt;
  &lt;div class="modal-header" style="color: #96c4f3;background-color: #071c3f;"&gt;
  &lt;div class="modal-body" style="background-color: #D6E3F9; overflow-y: hidden; "&gt;
  &lt;div class="modal-body" style="margin-left: 10px; margin-top: -20px; overflow-y: hidden;"&gt;
  &lt;img style="width:120px;height:120px; opacity:20" src="/ALEX/Logo/AboutBoxLogosvg.svg"&gt;
  &lt;h5&gt;
  &lt;h5&gt;
  &lt;h5&gt;
  &lt;b&gt; ALEX Version: 1.6.0 &lt;/b&gt;
  &lt;/h5&gt;
  &lt;h5&gt;
  &lt;b&gt; ALLEN Version: 1.4.0 &lt;/b&gt;
  &lt;/h5&gt;
  &lt;div style="background-color: #D6E3F9; padding: 10px; text-align: right; "&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I did not include the entire page's HTML, I didn't think it is necessary to include because I already found the frame that the H5 is contained within:</p>
  
  <pre><code>var aboutFrame = driver.FindElement(By.Id("showAboutContent"));
  </code></pre>
  
  <p>So since I already have that element found, I then found the h5 that I wanted within that frame by using it's tagname and index, as shown below:</p>
  
  <pre><code>var allenVersion = aboutFrame.FindElements(By.TagName("h5"))[3];
  </code></pre>
  
  <p>However, I would like to find the element using some type of "text contains" method instead. This is because there might be more h5's added to that window, so I dont want to find it by index like I have been doing, and I want it to be a "Contains" type of query, because the version number always changes. So I can just do a text contains "ALLEN Verson". </p>