📅  最后修改于: 2022-03-11 14:46:57.987000             🧑  作者: Mango
from selenium import webdriver
browser = webdriver.Firefox()
browser.get("http://www.google.com")
for elem in browser.find_elements_by_xpath('.//span[@class = "gbts"]'):
print elem.text