title: How to find the text which is outside of a tag using selenium?
body: <p>I want to retrieve all anchor tags which are labeled as "Working" from the following code.</p>
  
  <pre><code>    &lt;div class="A"&gt;
           &lt;a href="facebook.com"&gt;Profile 1&lt;/a&gt;
           Working
           &lt;br/&gt;
           &lt;a href="gmail.com"&gt;Profile 2&lt;/a&gt;
           &lt;br/&gt;
           &lt;a href="linkedin.com"&gt;Profile 3&lt;/a&gt;
           Working
           &lt;br/&gt;
     &lt;/div&gt;
  </code></pre>
  
  <p>Here I want to retrieve the anchor tags of "facebook" and "linkedin" as they have labeled as "Working".</p>
  
  <p>Following are my trails which didn't work properly.</p>
  
  <pre><code>//div[@class='A']//a//following-sibling::text()
  //div[@class='A'][contains(text(),'Working')]
  </code></pre>
  
  <p>Could any one provide the xpath to achieve this.</p>