title: Getting a child element with Selenium and Python
body: <p>I have this HTML:</p>
  
  <pre><code>&lt;div id = "d029384"&gt;
  &lt;span&gt;......&lt;/span&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>and my code:</p>
  
  <pre><code>elem = browser.find_elements_by_xpath("//div[contains(@id,'d')]")
  </code></pre>
  
  <p>except the div isn't working for what my program is doing. I need to be more specific. I need the span element instead. How can I get the span element? 
  Each div has an id that is d + numbers. I need those numbers so that's why I used that xpath but I don't know how to make the final WebElement point to the span and not to the div.</p>
  
  <p>Anyone know?</p>