Micro Focus QTP (UFT) Forums

Full Version: Waitproperty without timeout
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Can someone please help how to use wait property without timeout , I have a window which may take 5 secs to disappear and may be one hour. i need to make QTP wait till that window disappears, so no time out, need infinite wait

I am using [undefined=undefined]window("ABC").waitproperty "exist", False[/undefined]

But I have read somewhere like
while (window("ABC").waitproperty ("exist", False, -1) )
{
delay(500)
}
What does -1 means ?

Please help , its very urgent Thanks
use loop instead of wait property.

while window(abc).exist
wait(5)
Wend

Regards,
Ankesh
Thanks I will try this
@Ankesh

Its not working ....
PLZ post your code.
Try this

Code:
Do

If Window("ABC").Exist Then
    Wait(5)
Else
    Exit Do
End If

Loop
Hi use the below code which will wait untill the window disapear

Do untill Window("ABC").Exist
Wait(5)
Loop


Thanks,
mahantesh