python+selenium如何獲取元素中并列的屬性值
python+selenium如何獲取元素中并列的屬性值?
慕的地6264312
2019-04-03 11:07:14
TA貢獻2039條經驗 獲得超8個贊
element = driver.find_element_by_xpath("//*[@id='lobby-left-container']/div[2]/div/table/tbody/tr[1]/td[2]/div")
data_id = element.get_attribute("data-id")
舉報