title: How to verify just the first line in xpath //span/p using Python
body: <p>I just want to verify the portion of the text given in the below code. </p>
  
  <pre><code>textPresent = driver.find_element_by_xpath ("//span/p")
  </code></pre>
  
  <p>is giving me the below </p>
  
  <pre><code>Successfuly added to execution processing!
  
  {"Date":"5/13/2014","$$hashKey":"00F","memberId":"TOP","instrumentType":"MEE","S‌​ymbol":"IPL","quantity":"400","price":113.99} 
  </code></pre>
  
  <p>So i can't really do</p>
  
  <pre><code>assert(textPresent == 'Successfully added to processing')
  </code></pre>