12-11-2007, 03:40 PM
Hi ,
I am having trouble with Wait statements.
I would like to wait 60 seconds for a certain dialog to come up. If I do it just by Window Name/Class, there is ambiguity between the window I want to wait for and an earlier window that shares the same Window Name/Class but different content inside.
If I wait by Controls, it doesn't recognize the wait 60 seconds and throws the wait time-out error immediately - no matter how high I set the seconds.
I also tried doing it as an acc statement with a wait time but that didn't work either.
This seems like a bug but is probably a syntax error on my part. Any advice?
Thanks,
Stuart
I am having trouble with Wait statements.
I would like to wait 60 seconds for a certain dialog to come up. If I do it just by Window Name/Class, there is ambiguity between the window I want to wait for and an earlier window that shares the same Window Name/Class but different content inside.
If I wait by Controls, it doesn't recognize the wait 60 seconds and throws the wait time-out error immediately - no matter how high I set the seconds.
wait 120 WC child("Are you sure you want to sign this report?" "Static" win("SampleApp" "#32770") 0x1)
I also tried doing it as an acc statement with a wait time but that didn't work either.
Acc a=acc("Are you sure you want to sign this report?" "WINDOW" win("Commissure RadWhere" "#32770") "Static" "" 0x1001 0 0 "" 120)
This seems like a bug but is probably a syntax error on my part. Any advice?
Thanks,
Stuart