title: Get span inside a class using WebDriver and Selenium
body: <p>I am trying to scrape the name of a person inside a a span.
  This span is inside a class.</p>
  <p>Follow the HTML:</p>
  <pre><code>&lt;div&gt;
  &lt;a class=&quot;_32mo&quot; href=&quot;https://www.facebook.com/goutham.pullela?ref=br_rs&quot;&gt;
  &lt;span&gt;Goutham Pullela&lt;/span&gt;
  &lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  <p>I am trying using <code>find_elements_by_class_name</code> and then get the <code>attribute</code>, but <code>span</code> is not an <code>attribute</code>. I don't have a identification for this <code>span</code>.</p>
  <pre><code>contacts = browser.find_elements_by_class_name('_32mo')
  
  for contact in contacts:
      name = str(contact.get_attribute('span'))
      print(name)
  </code></pre>