#獲取table的行數
rowCount = len(driver.find_elements_by_xpath('//*[@id="list-table"]/tbody/tr'))
#獲取第三列的每一行的值
for i in range(2,rowCount):
print driver.find_element_by_xpath('//*[@id="list-table"]/tbody/tr[%s]/td[3]'%(i)).text
#獲取table的行數
rowCount = len(driver.find_elements_by_xpath('//*[@id="list-table"]/tbody/tr'))
#獲取第三列的每一行的值
for i in range(2,rowCount):
print driver.find_element_by_xpath('//*[@id="list-table"]/tbody/tr[%s]/td[3]'%(i)).text
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。