title: XPath to select link containing text?
body: <p>I tried to use this XPath:</p>
  
  <pre><code>//*[contains(normalize-space(text()),'Jira')]
  </code></pre>
  
  <p>Also tried:</p>
  
  <pre><code>//*[contains(text(),'Jira')]
  </code></pre>
  
  <p>In the below HTML example, there is space before and after text "Jira". I am not able to click on the link:</p>
  
  <pre><code>&lt;a href="#/crm/usergroup-edit?id=572a3c84e4b07f6189958700" 
     ng-repeat="gp in groups | filter : userGroupSearch | orderBy:'-name':1" 
     class="ng-scope"&gt;
      &lt;div class="inventoryPanel" ng-style="myStyle" style="width: 15.8%;"&gt;
          &lt;h4 class="ng-binding"&gt;
              &lt;div class="groupIcon G"&gt;
                  &lt;div class="text ng-binding"&gt;P&lt;/div&gt;
              &lt;/div&gt;Jira
           &lt;/h4&gt;
      &lt;/div&gt;
   &lt;/a&gt;
  </code></pre>