警告
DeprecationWarning: find_element_by_* commands are deprecated. Please use find_element() instead
button=broser.find_element_by_xpath('//span')
find_element_by_*已被废弃
原来写法
button=broser.find_element_by_xpath('//span')
现在写法
button=broser.find_element(By.XPATH,'//span')
要事先导入就不会报错了
from selenium.webdriver.common.by import By