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”)
js = “document.getElenmetById(‘uploadFilePath’).removeAttribute(‘readonly’)”
driver.execute(js)
driver.find_element_by_id(“uploadFilePath’”).send_keys(“C://TnD_Service_Pkg.zip”)