title: How to merge 2 xpath in one
body: <p><strong>Html</strong></p>
  
  <pre><code>&lt;li class="wdappchrome-ai" data-automation-id="searchInputAutoCompleteResult" tabindex="-2" aria-posinset="1" aria-setsize="3"&gt;
  &lt;span data-automation-id="searchInputAutoCompleteResultFullText"&gt;
      &lt;span style="font-weight:500"&gt;
          &lt;span data-automation-id="searchInputAutoCompleteResultToken" style="font-weight:400"&gt;mike&lt;/span&gt;
          &lt;span data-automation-id="searchInputAutoCompleteResultToken" style="font-weight:400"&gt;diana&lt;/span&gt;
      &lt;/span&gt;
  &lt;/span&gt;
  &lt;/li&gt;
  </code></pre>
  
  <p>I am getting user full name divided into <code>spans</code> so I want to build xpath which returns me combine text of both/multiple span from single <code>list</code>.</p>
  
  <p>For now I am using 2 or more xpath based on name of user divided into span.</p>
  
  <p>I use : <code>//li[.//span[text()='mike']]</code>  <code>//li[.//span[text()='diana']]</code></p>
  
  <p>Then I do <code>gettext()</code> for above both xpath and merge using java grammatically. So I am looking for solution which give me full text of all <code>span</code> within particular <code>li</code> tag from above.</p>