title: Python Selenium: get element by class and convert to text
body: <p>I am having trouble getting the text element ("1,028 Sales") from the following page:  <a href="https://www.etsy.com/shop/susansimonini?ref=l2-shopheader-name" rel="nofollow">https://www.etsy.com/shop/susansimonini?ref=l2-shopheader-name</a>. </p>
  
  <p>I can get the element itself with no issue using this:</p>
  
  <pre><code>driver.find_element_by_class_name('shop-sales') 
  </code></pre>
  
  <p>But I cannot convert it to text.  The following results in a blank line:</p>
  
  <pre><code>sales=driver.find_element_by_class_name('shop-sales').text
  print sales
  </code></pre>
  
  <p>What am I doing wrong?  Thanks in advance for your help.</p>
  
  <p>josh</p>