from selenium import webdriver
browser = webdriver.Firefox()
browser.get('http://www.google.com')
for elem in browser.find_elements_by_xpath('.//span[@class = "gbts"]'):
    pass
Use Python Selenium to get span text