“存在”吗? VBScript(QTP) 中的方法声明存在
Browser("Online Exchange login").Page("Online Exchange login").Exist(10)
以下几行不包含在源代码中:
我的问题是:上面代码行中的 Exist(10)
方法将验证 Page 的所有子对象(如果有)的存在("在线交换登录")
对象在声明其存在之前?
Browser("Online Exchange login").Page("Online Exchange login").Exist(10)
Following lines are not included in the source code:
My question is : Will Exist(10)
method, in above line of code, verifies the existence of all Child Objects (if any) of Page("Online Exchange login")
object before declaring its existence?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
否,
Exist
检查当前是否存在与调用该控件的测试对象中的描述相匹配的控件。它不检查子对象。进一步阅读。
No,
Exist
checks to see if there is currently a control that matches the description in the test object on which it was called. It does not check child objects.Further reading.
No Exists 方法将检查调用它的对象而不是其子对象。在这种情况下,仅检查页面对象是否存在。
在这种情况下请注意 QTP 等待
10 秒 + 浏览器同步时间
No Exists method will check for the object on which it is called and not its child objects. In this case only the page object will be checked for existence.
In this case note that QTP waits for
10 sec + Browser Sync Time