title: Unable to use texT() in a div - Selenium WebDriver
body: <p>I have a div tag HTML code as below:</p>
  
  <pre><code>&lt;div class="kac-entry kac-select kac-placeholder ng-binding btn btn-primary" ng-click="toggleDropdown()" ng-show="shouldShowPlaceholder()" ng-class="{btn: btnStyle, 'btn-primary': btnStyle}"&gt;      Add Index Components   &lt;/div&gt;
  </code></pre>
  
  <p>When I try to access the element with the following xpaths, I am unable to find the matching node on my web page,</p>
  
  <pre><code>//div[text()='Add Index Components']
  //div[text()='      Add Index Components   ']
  </code></pre>
  
  <p>Can someone tell me why am I unable to locate the element?</p>