← Back to team overview

sikuli-driver team mailing list archive

[Question #239762]: How to invoke click() or wait() function by importing jar

 

New question #239762 on Sikuli:
https://answers.launchpad.net/sikuli/+question/239762

Hi, I want to run my sikuli case in eclipse which supposed to be a jython script. And here's a piece of my script. When I imported the App class from org.sikuli.script in sikuli-java.jar, the App.open function worked well. But I have no idea that from which jar can I get the click() and wait() functions, seems they are not in the sikuli-java.jar. The code have errors of 'undefined variable click' and 'undefined variable wait'.

--------------------------------------------------------------------------------------------------

from org.sikuli.script import App
from org.sikuli.script import *

def login(exepath):
    App.open(exepath)
    wait("1384849271599.png", 300)
    click("1384849271599.png")

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