python+selenium如何獲取元素中并列的屬性值
python+selenium如何獲取元素中并列的屬性值?
慕的地6264312
2019-04-03 11:07:14
TA貢獻(xiàn)2039條經(jīng)驗(yàn) 獲得超8個(gè)贊
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")
舉報(bào)