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!
精彩评论