Selenium WebDriver-判断页面中某一元素是否可操作
driver.get("http://127.0.0.1/test_enable.html") i1=driver.find_element_by_id("input1") i2=driver.find_element_by_id("input2") i1.is_enabled() #True i2.is_enabled() #False
driver.get("http://127.0.0.1/test_enable.html") i1=driver.find_element_by_id("input1") i2=driver.find_element_by_id("input2") i1.is_enabled() #True i2.is_enabled() #False