|
回复 9# 的帖子
楼上大致解答了,你既然知道用描述性编程去动态匹配WebElement对象,那么在做Exist判断的时候怎么就不动态的去判断了呢。。。。。。
另外回楼上,等待时间其实已经加了,Exist()参数为空的时候默认能等待20秒(对象全局同步时间)
object.Exist([TimeOut])
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 property 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. |
|