若driver.find_element_by_xpath('xx').text 没有值 可以尝试 driver.find_element_by_xpath('xx').get_attribute('innerHTML')