TestComplete 等待控件是否出现的函数
上一篇 /
下一篇 2008-01-31 22:48:45
/ 个人分类:Test complete
在使用TC的过程中发现:在回放脚本时,有些控件的加载速度太慢,导致脚本报错。
一开始是使用delay()函数进行控制,感觉效果不好,通过与同事的讨论发现:
使用Wait Windows()可以解决等待下一窗口出现的问题,该函数的使用方法见下图:
ProcessObj.WaitWindow(WndClass, WndCaption, GroupIndex, Timeout)
Parameters
ProcessObj A process object 当前进程对象
WndClass [in] Required String 窗体类名字符串
WndCaption [in] Optional String Default value: * 窗体属性名,默认为*
GroupIndex [in] Optional Integer Default value: -1 窗体的索引
Timeout [in] Required Integer 等待窗体的时间长度
Result An Window object 返回一个窗体对象
这个函数还是不错的,具体的使用方法和实例,大家可以看看在线帮助
收藏
举报
TAG: