“存在”吗? VBScript(QTP) 中的方法声明存在

发布于 2024-12-14 05:00:18 字数 225 浏览 3 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

想念有你 2024-12-21 05:00:18

否,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.

对岸观火 2024-12-21 05:00:18

No Exists 方法将检查调用它的对象而不是其子对象。在这种情况下,仅检查页面对象是否存在。

Browser("Online Exchange login").Page("Online Exchange login").Exist(10)

在这种情况下请注意 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.

Browser("Online Exchange login").Page("Online Exchange login").Exist(10)

In this case note that QTP waits for
10 sec + Browser Sync Time

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文