标题: 校验对象是否存在object.exist [打印本页] 作者: qixiafeng 时间: 2007-3-7 11:38 标题: 校验对象是否存在object.exist 除了用校验点来确认相符的对象是否存在外,也可以用object的exist属性来判断对象的存在与否.
语法:Object.Exist([Timeout]) 描述:
Argument
Type
Descrīption Timeout
Number 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.
For more information on the Object Synchronization Timeout, refer to the QuickTest Professional User's Guide.