selenium 上传文件之AutoIt
2021-03-27 19:25
标签:tle 图片 instance edit wait 地址 ext code https 1.下载地址:https://www.autoitscript.com/site/ 2. 通过这个进行下面操作 3. 4. 通过这个编写【注意“打开”是你 当前的弹层名字;保存格式为au3,如upload.au3】 ;ControlFocus("title","text",controlID) Edit1=Edit instance 1 ControlSetText("打开", "", "Edit1", "C:\Users\hui\Desktop.zip") Sleep(2000) ; Click on the Open button ControlClick("打开", "","Button1"); 5. 通过这个 把au3 转换为exe 6.在代码中调用 selenium 上传文件之AutoIt 标签:tle 图片 instance edit wait 地址 ext code https 原文地址:https://www.cnblogs.com/yanhuidj/p/12628323.html
ControlFocus("打开", "","Edit1")
; Wait 10 seconds for the Upload window to appear
WinWait("[CLASS:#32770]","",10)
; Set the File name text on the Edit field