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

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

Regards,
Ankesh
Reply
#3
Solved: 10 Years, 9 Months ago
Thanks I will try this
Reply
#4
Solved: 10 Years, 9 Months ago
@Ankesh

Its not working ....
Reply
#5
Solved: 10 Years, 9 Months ago
PLZ post your code.
Reply
#6
Solved: 10 Years, 9 Months ago
Try this

Code:
Do

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

Loop
Reply
#7
Solved: 10 Years, 9 Months ago
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 7,327 08-07-2014, 01:18 PM
Last Post: akilamurugesh

Forum Jump:


Users browsing this thread: 1 Guest(s)