51Testing软件测试论坛

标题: Exist 和 WaitProperty [打印本页]

作者: dezhao_huang    时间: 2005-9-1 10:51
标题: Exist 和 WaitProperty
我的代码:
If Window(Main).Dialog(dlgObj).Exist(2) Then
Window(Main).Dialog(dlgObj).WinButton(btnMandAddYes).Click
End If
这个2表示2毫秒吗?但是这里设置的2没有起作用,还是用的是
Object Synchronization Timeout。
哪位大哥知道为什么呢?
作者: QA_BAY    时间: 2005-9-1 12:09
Optional. The length of time to search for the object before returning a True or False value.
帮助里面说得很清楚了吧!
If a timeout value is specified, QuickTest waits until it finds the object or until the timeout is reached.
If the value 0 is specified, the method returns the True or False value immediately.
If no value is specified, the value specified in the Test Settings dialog box for the Object Synchronization Timeout is used for tests. For business components, the pre-defined value of 20 seconds is used.
作者: dezhao_huang    时间: 2005-9-1 12:59
谢谢QA_BAY版主,帮助我也看过了啊。我设置的Exist(2)好像没有起作用,仍然用的 pre-defined value of 20 seconds.有什么其他地方需要设置吗?




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2