title: python selenium find child elements in loop
body: <p>I need to parse some child elements in all parent elements on page. </p>
  
  <p>Create list of all articles on page</p>
  
  <pre><code>article_elements = driver.find_elements_by_tag_name('article')
  </code></pre>
  
  <p>And after tying to get child elements in for loop and append all results to list</p>
  
  <pre><code>for article in article_elements:
      title = article.find_element_by_xpath('//article/h2').text
      share_count = article.find_element_by_xpath('//footer/div/a/span').text
      poinst = article.find_element_by_xpath('//footer/div[2]/div[1]/div[3]').text
      meta_info_list.append({'title':title, 'share count':share_count, 'points':poinst})
  </code></pre>
  
  <p>After loop ends i got 40 times one same article meta (of first article) </p>
  
  <pre><code>{'share count': u'66', 'points': u'53 points', 'title': u'25+ Random Acts Of Genius Vandalism'}
  {'share count': u'66', 'points': u'53 points', 'title': u'25+ Random Acts Of Genius Vandalism'}
  {'share count': u'66', 'points': u'53 points', 'title': u'25+ Random Acts Of Genius Vandalism'}
  {'share count': u'66', 'points': u'53 points', 'title': u'25+ Random Acts Of Genius Vandalism'}
  ... 40 times
  </code></pre>
  
  <p>My whole code</p>
  
  <pre><code> # coding: utf8
  from selenium import webdriver
  from selenium.webdriver.common.keys import Keys
  import time
  
  driver = webdriver.Chrome()
  driver.set_window_size(1024,768)
  driver.get('http://www.boredpanda.com/')
  
  time.sleep(2)
  
  meta_info_list = []
  
  article_elements = driver.find_elements_by_tag_name('article')
  
  for article in article_elements:
      title = article.find_element_by_xpath('//article/h2').text
      share_count = article.find_element_by_xpath('//footer/div/a/span').text
      poinst = article.find_element_by_xpath('//footer/div[2]/div[1]/div[3]').text
      meta_info_list.append({'title':title, 'share count':share_count, 'points':poinst})
  
  for list in meta_info_list:
      print(list)
  </code></pre>