← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #229541]: [1.0] Observe: ClassCastException: org.python.core.PyMethod cannot be cast to org.sikuli.script.SikuliEventObserver

 

Question #229541 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/229541

    Status: Answered => Open

Bunnings is still having a problem:
Hi Raiman, apologies should have put the code while raising the issue.

The below method is called after a button is clicked. (Timeouts.Observe
is 3 secs, Timeout.Wait is 10 secs)

def PostTransactionEvent(self):
    """ wait while posting transaction handler, make it run in the foreground """
    self.screen.onAppear("PostingTrans.png", self.WaitWhilePostingTransaction)
    self.screen.observe(Timeouts.Observe, background = False)


event handler
-------------------
def WaitWhilePostingTransaction(self, event):      
    self.screen.waitVanish(event.match, Timeouts.Wait)
    event.region.stopObserver()

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.