js移除标签属性的方法

item=driver.find_element_by_xpath('/html/body/div[2]/div[1]/div/div/i[1]')
driver.execute_script('arguments[0].click();',item)
driver.execute_script('arguments[0].removeAttribute("readonly")',item)

猜你喜欢

转载自blog.csdn.net/honghong3864/article/details/114826482