title: For below DOM code I want to get date string
body: <pre><code>&lt;h5 class="val ng-binding"&gt;
       Machine states
       &lt;div class="dashboard-arrow fa fa-arrow-right"&gt;&lt;/div&gt;                          
       July 9, 03:24 To July 9, 11:24
  &lt;/h5&gt;
  </code></pre>
  
  <p>I have tried the locator
  <code>//h5[normalize-space(text())='Machine states']</code> but I'm not getting all text inside h5 tag how should I get it? what I am missing?</p>