title: Can't find element contains some text
body: <p>There is a bit of the page: </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code> &lt;label&gt;
     &lt;input type="checkbox"&gt;
  
     &lt;/input&gt;
  "  some text"
  &lt;/label&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I need to find an element which contains "some text".
  If I use </p>
  
  <pre><code>WebElement().ByXPath("//div/label[contains(text(),'some text')]");
  </code></pre>
  
  <p>But this does not give results. Element could not be found.</p>
  
  <p>But!! If I try get Attribute (InnerHTML, GetText, innerText) for such element with </p>
  
  <pre><code>    WebElement.ByXPath("//div/label").GetAttribute("InnerHTML"/"innerText");
     WebElement.ByXPath("//div/label").Text; 
  </code></pre>
  
  <p>There is the right result (WebElement.ByXPath("//div/label").Text=="some text")! </p>
  
  <p>For this XPath elements:</p>
  
  <pre><code>WebElement().ByXPath("//div/label[contains(@innerHtml,'some text')]");
  WebElement().ByXPath("//div/label[contains(@innerText,'some text')]");
  </code></pre>
  
  <p>It doesn't work too.</p>
  
  <p>Why is this possible? Why I can't find element by unique text on the page? </p>