views:

39

answers:

2

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?

+1  A: 

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

Browser("...").Page("...").Frame("...").WaitProperty "state", 4
Motti
Thank you. I tried what you suggested. It doesn't work in my case. readyState value is 4, but frame content is still not loaded.Most likely it happens because frame content is loaded by a javascript.
katmoon
A: 

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!

sreeram