Python selenium 获取标签内的text值的方法
driver.find_element_by_xpath("").get_attribute('textContent')
get_attribute这个方法还可以定位标签内是否含有某个属性
比如 ,看一下某个按钮是不是 disabled状态的
driver.find_element_by_xpath("").get_attribute('disabled')
努力让自己变得不那么low
driver.find_element_by_xpath("").get_attribute('textContent')
get_attribute这个方法还可以定位标签内是否含有某个属性
比如 ,看一下某个按钮是不是 disabled状态的
driver.find_element_by_xpath("").get_attribute('disabled')