title: is it possible to read the text of a li using Xpath with different attributes?
body: <p>I am aware that I can directly use: </p>
  
  <pre><code>driver.FindElement(By.XPath("//ul[3]/li/ul/li[7]")).Text
  </code></pre>
  
  <p>to get the text .. but I am trying get the text by using Xpath and combination of different attributes like <code>text()</code>, <code>contains()</code> etc.</p>
  
  <pre><code>//ul[3]/li/ul/li//[text()='My Data']  
  </code></pre>
  
  <p>Please suggest me different ways that I can handle this ... except the one I mentioned.</p>
  
  <pre><code>&lt;li class="ng-binding ng-scope selectedTreeElement" ng-click="orgSelCtrl.selectUserSessionOrg(child);" ng-class="{selectedTreeElement: child.organizationId == orgSelCtrl.SelectedOrg.organizationId}" ng-repeat="child in node.childOrgs" style="background-color: transparent;"&gt; My Data &lt;/li&gt;
  </code></pre>