title: Selenium Python how to get text(html source) from <div>
body: <p>I'm trying to get text <code>$27.5</code> inside tag <code>&lt;div&gt;</code>, I located the element by id and the element is called "price". </p>
  
  <p>The snippet of html is as follows:</p>
  
  <pre><code>&lt;div id="PPP,BOSSST,NYCPAS,2015-04-26T01:00:00-04:00,2015-04-26T05:20:00-04:00,_price" class="price inlineBlock strong mediumText"&gt;$27.50&lt;/div&gt;
  </code></pre>
  
  <p>Here is what I've tried</p>
  
  <pre><code>price.text
  price.get_attribute('value')
  </code></pre>
  
  <p>Both of the above doesn't work.</p>
  
  <p><strong>Update:</strong>
  Thanks for everyone that tries to help.
  I combined your answers together and got the solution:)</p>
  
  <pre><code>    price = driver.find_element_by_xpath("//div[@class='price inlineBlock strong mediumText']")
      price_content = price.get_attribute('innerHTML')
      print price_content.strip()
  </code></pre>