开发者

What is the best way to wait until a frame is loaded in QTP?

In Web addin QTP pro开发者_如何学Pythonvides 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?


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

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


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!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜