1. 使用JS脚本将input类型readonly的输入框临时改为可输入
js = “document.getElenmetById(‘uploadFilePath’).removeAttribute(‘readonly’)”
driver.execute(js)
driver.find_element_by_id(“uploadFilePath’”).send_keys(“C://TnD_Service_Pkg.zip”)
标签:lib gpo color drive key remove body rem .exe
js = “document.getElenmetById(‘uploadFilePath’).removeAttribute(‘readonly’)”
driver.execute(js)
driver.find_element_by_id(“uploadFilePath’”).send_keys(“C://TnD_Service_Pkg.zip”)
标签:lib gpo color drive key remove body rem .exe
原文地址:http://www.cnblogs.com/yahutiaotiao/p/8044885.html