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