|
能确定是InputKeys很慢吗?
我在Robot里执行下面的脚本,总共大约3秒钟执行完成。你可以试一下,然后注意一下输出的时间,看看到底慢在哪里。
Sub Main
Dim Result As Integer
'Initially Recorded: 11/30/2004 2:47:11 PM
'Script Name: web browser
SQAConsoleWrite cstr(Now)
StartBrowser "http://sharepoint/default.aspx", "WindowTag=WEBBrowser"
SQAConsoleWrite cstr(Now)
Window SetContext, "WindowTag=WEBBrowser", ""
SQAConsoleWrite cstr(Now)
ComboEditBox Click, "ObjectIndex=4", "Coords=333,4"
SQAConsoleWrite cstr(Now)
InputKeys "http://localhost{ENTER}"
SQAConsoleWrite cstr(Now)
End Sub |
|