1、
js = 'document.getElementById("train_date").removeAttribute("readonly");
driver.execute_script(js)
2、
pag=driver.find_element_by_xpath('//*[@id="pane-first"]/div/div/ul/li[2]/ul/li[1]')
driver.execute_script("arguments[0].removeAttribute('readonly')",pag)
3、
driver.execute_script('arguments[0].value="100条/页"',pag)
标签:execute,script,Selenium,removeAttribute,driver,输入框,readonly,pag From: https://www.cnblogs.com/xioawu-blog/p/16696280.html