js = 'document.getElementById("dealTimeS").removeAttribute("readonly");'# 原生js,移除属性 print('原生js,移除属性') my_logger.info('原生js,移除属性') driver.execute_script(js) jsValue = 'document.getElementById("dealTimeS").value="{}"'.format(datetime) print('写入新时间') driver.execute_script(jsValue) print('执行')
移除readonly时间js
最新推荐文章于 2024-04-28 14:27:02 发布