Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with Wait Statements -for Childwindow and for Acc
#1
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.

Code:
Copy      Help
wait 120 WA win("Sample App" "#32770")

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.

Code:
Copy      Help
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.

Code:
Copy      Help
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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)