- 介绍
AutoIt是一款针对GUI自动化测试的工具。
- 文件上传
[codesyntax lang="vb"]
WinWaitActive('文件上传') ControlSetText('文件上传', '', '[CLASS:Edit;]', 'd:\a.jpg') Send('!o')
[/codesyntax]
ControlSetText是给指定界面元素设置字符串内容的
Send是用来发送键盘指令的
查看原文:http://surenpi.com/2016/03/14/autoit/