title: Finding a text node #text in Selenium Python
body: <p>I have the following HTML</p>
  <pre><code>&lt;div class=&quot;detailSection&quot;&gt;
              &lt;span&gt;Authorized Person(s) Detail&lt;/span&gt;
              &lt;span&gt;
                       &lt;b&gt;Name &amp;amp; Address&lt;/b&gt;
              &lt;/span&gt;
              &lt;br&gt;
              &lt;br&gt;
              &lt;span&gt;Title&amp;nbsp;MGR&lt;/span&gt;
              &lt;br&gt;
              &lt;br&gt;
              &quot;
              EYN, KHASHY    &quot;   
              &lt;span&gt;
  
                 &lt;div&gt;
                 100 Wall Street&lt;br&gt;
                 NEW YORK, NY 10005&lt;br&gt;
                 &lt;/div&gt;
      
              &lt;/span&gt;
              &lt;br&gt;
              &lt;/div&gt;
  </code></pre>
  <p>I would like to extract the EYN, KHASHY portion of the HTML. My Chrome developer tools tells me this is a #text node(?) and I think that is why it is not working with my current code. Although I am not familiar with #text nodes at all but it seems distinct from the HTML.</p>
  <p>Currently my code selects all children elements of the <code>&lt;div&gt;</code> which is parent to the #text. As follows:</p>
  <pre><code> persons = driver.find_element_by_xpath('//*[@id=&quot;maincontent&quot;]/div[2]/div[6]')
          all_children = persons.find_elements_by_xpath(&quot;.//*&quot;)
          for child in all_children:
              li_person.append(child.text)
              print(child.text)
  </code></pre>
  <p>This gives me all the text except the EYN, KHASHY. Probably because all other text is part of a certain element as Chrome dev tools tell me when I hover over. The #text &quot;EYN, KHASHY&quot; returns as blank.</p>
  <p>How can I select this node and extract this information?</p>