Micro Focus QTP (UFT) Forums
Waitproperty without timeout - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: Waitproperty without timeout (/Thread-Waitproperty-without-timeout)



Waitproperty without timeout - vanibandla - 11-08-2012

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


RE: Waitproperty without timeout - Ankesh - 11-08-2012

use loop instead of wait property.

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

Regards,
Ankesh


RE: Waitproperty without timeout - vanibandla - 11-09-2012

Thanks I will try this


RE: Waitproperty without timeout - vanibandla - 11-10-2012

@Ankesh

Its not working ....


RE: Waitproperty without timeout - Ankesh - 11-14-2012

PLZ post your code.


RE: Waitproperty without timeout - ssvali - 11-20-2012

Try this

Code:
Do

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

Loop



RE: Waitproperty without timeout - hiregoudar - 11-21-2012

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

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


Thanks,
mahantesh