js = 'document.getElementsByName("m:csr_mt_gnccspjclfbxd:bmshldID")[0].type="text";'
browser.execute_script(js)
js='document.getElementsByName("m:csr_mt_gnccspjclfbxd:bmshldID")[0].setAttribute("class","");'
browser.execute_script(js)
browser.find_element_by_xpath("//input[@name='m:csr_mt_gnccspjclfbxd:bmshldID']").send_keys("10500032626")
js='document.getElementsByName("m:csr_mt_gnccspjclfbxd:bmshld")[0].removeAttribute("readOnly");'
browser.execute_script(js)

思路就是先改变属性,然后赋值

相关文章:

  • 2021-05-23
  • 2021-09-19
  • 2022-01-22
  • 2022-02-19
  • 2022-12-23
  • 2022-12-23
  • 2022-01-08
猜你喜欢
  • 2022-12-23
  • 2021-11-29
  • 2022-12-23
  • 2021-12-04
  • 2022-12-23
  • 2021-11-12
相关资源
相似解决方案