utotest.autotest.web.framework.2.0.0-20170722.source-code.file_choose.au3 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of autotest.web.framework Show documentation
Show all versions of autotest.web.framework Show documentation
基于Selenium的自动化测试框架Phoenix,采用Java语言编写的。到目前为止,已经覆盖了WebUI自动化测试过程中需要的大部分功能封装。
The newest version!
$Title = $CmdLine[1]
$FileAbsPath = $CmdLine[2]
While 1
WinWaitActive($Title)
if WinExists($Title) Then
ControlGetFocus('$Title')
ControlClick($Title, '', '[CLASS:Edit;INSTANCE:1]')
While Not (ControlGetText($Title, '', '[CLASS:Edit;INSTANCE:1]') == $FileAbsPath)
ControlSetText($Title, '', '[CLASS:Edit;INSTANCE:1]', $FileAbsPath)
Wend
ControlSend($Title, '', '[CLASS:Edit;INSTANCE:1]', @CR)
ExitLoop
EndIf
Wend