Wait() not working as expected on win7 or xp
def myHand():
click(Image "Open" )
stopObserve()
sleep(2)
click( Image "Process")
sleep(5)
onAppear(Image "Notification" , myHand())
I am having a application, which does some processing of files, the processing time is variable depending on the file size, I am not sure about the amount of time I need to wait for each file. I am trying to use this OnAppear API. But it is not waiting for the required amount of time, As soon as the sleep(5) is done onAppear function executes and my function fails.
Regarding the myHand function.When I try using onAppear(image "Notification", myHand) it does not execute. When defining the function as myHand(event):
Appreciate your help..
Thanks,
Biju
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Bijuak for more information if necessary.