在 QTP 中等待框架加载的最佳方法是什么?

发布于 2024-09-11 06:20:45 字数 126 浏览 1 评论 0原文

在Web addin中,QTP为Browser和Page对象提供了同步功能,以便等待相应的导航完成。

虽然,Frame 没有这样的功能。

等待框架内容加载的最佳方法是什么?

In Web addin QTP provides Sync function for Browser and Page objects in order to wait until the correposponding navigation is complete.

Although, there is no such a function for a Frame.

What is the best way to wait until the frame content is loaded?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

梦亿 2024-09-18 06:20:45

您可以等待就绪状态(4 表示完成)。

Browser("...").Page("...").Frame("...").WaitProperty "state", 4

You can wait on the ready state (4 is complete).

Browser("...").Page("...").Frame("...").WaitProperty "state", 4
终陌 2024-09-18 06:20:45

请尝试这个,
枢轴=0

If (Browser("...").Page("...").Frame("...").Getroproperty("abs_x")) 那么
'进行下一步操作
枢轴 = 1
结束如果
while (pivot =0)

'语法不正确!

Please try this,
pivot =0
do
If (Browser("...").Page("...").Frame("...").Getroproperty("abs_x")) Then
'do the next operations
pivot = 1
End if
while (pivot =0)

'the syntax is incorrect!

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