Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Waitproperty without timeout
#1
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
Reply
#2
use loop instead of wait property.

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

Regards,
Ankesh
Reply
#3
Thanks I will try this
Reply
#4
@Ankesh

Its not working ....
Reply
#5
PLZ post your code.
Reply
#6
Try this

Code:
Do If Window("ABC").Exist Then Wait(5) Else Exit Do End If Loop
Reply
#7
Hi use the below code which will wait untill the window disapear

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


Thanks,
mahantesh
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  UFT WaitProperty Not working akilamurugesh 1 8,182 08-07-2014, 01:18 PM
Last Post: akilamurugesh

Forum Jump:


Users browsing this thread: 1 Guest(s)