title: Splinter: Getting pieces of XPATH text that aren't unique elements
body: <p>How do I get the text of the first, underline, and last part of the <code>question</code> and store it into a variable, using Splinter?</p>
  
  <p>See the HTML at the bottom. I want to make the following variables have the following values:</p>
  
  <pre><code>first_part = "Jingle bells, jingle bells, jingle all the"
  second_part = "_______"
  third_part = "! Oh what fun it is to ride in one-horse open sleigh!"
  </code></pre>
  
  <p>I went <a href="http://www.utilities-online.info/xpath/" rel="nofollow">here</a>, used the XPATHs</p>
  
  <pre><code>//*[@id="question_container"]/div[1]/span/text()[1] #this is first_part
  //*[@id="question_container"]/div[1]/span/span      #this is second_part
  //*[@id="question_container"]/div[1]/span/text()[2] #this is third_part
  </code></pre>
  
  <p>and applied them to the below HTML. They returned the wanted values in the test, but for my program, Splinter seems to reject them:</p>
  
  <pre><code>first_part = browser.find_by_xpath(xpath = '//*[@id="question_container"]/div[1]/span/text()[1]').text
  second_part = browser.find_by_xpath(xpath = '//*[@id="question_container"]/div[1]/span/span').text
  third_part = browser.find_by_xpath(xpath = '//*[@id="question_container"]/div[1]/span/text()[2]').text
  
  print first_part
  print second_part
  print third_part
  
  --------------    OUTPUT     -------------
  
  []
  []
  []
  </code></pre>
  
  <p><b>What am I doing wrong, why is it wrong, and how should I change my code?</b></p>
  
  <p>The referred-to HTML (which was slightly edited to 'Jingle Bells' to better convey the problem) was retrieved  using the <code>browser.html</code> feature of Splinter:</p>
  
  <pre><code>&lt;div id="question_container" style="display: block;"&gt;
  &lt;div class="question_wrap"&gt;
  
  &lt;span class="question"&gt;Jingle bells, jingle bells, jingle all the
  &lt;span class="underline" style="display: none;"&gt;_______&lt;/span&gt;
  &lt;input type="text" name="vocab_answer" class="answer" id="vocab_answer"&gt;&lt;/input&gt;
  ! Oh what fun it is to ride in one-horse open sleigh!&lt;/span&gt;
  
  &lt;/div&gt;&lt;/div&gt;
  </code></pre>