sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #21910
[Question #237747]: Undefined variable Eclipse
New question #237747 on Sikuli:
https://answers.launchpad.net/sikuli/+question/237747
HI,
I have configured eclipse environment according to the following description:
http://doc.sikuli.org/faq/040-other-ide.html
https://github.com/RaiMan/SikuliX-API/wiki/Usage-in-Java-programming
But I can still not go forward, now my impediment are in my code:
* Undefined variable
** is python no jython
import org.sikuli.basics.SikuliXforJython
from sikuli import*
from datetime import timedelta
from time import clock
def startApp():
try: print("open firefox and type zaci url..")
global app
* AutoWaitTimeout(10)
app = App.open(r"C:\Program\Mozilla Firefox\firefox.exe")
except: failTestCase("startfirefox")
def startZaci():
try: * wait("1381239045454.png")
type('l', KEY_CTRL)
* paste('https://localhost/index.php')
type(Key.ENTER)
* wait("1381231580670.png", 20)
** with * Region(* find("1381231618344.png")):
* doubleClick("1381231634958.png")
type("hudson") * wait(2)
* doubleClick("1381231649319.png")
type("hudson1")
* wait(2)
* click("1381231658482.png") assert
* exists("1381231705529.png")
passTestCase("StartZaci")
except: failTestCase("StartZaci")
def failTestCase(args):
print "Test Case " + args + " fail"
def passTestCase(args): print "Test Case " + args + " pass"
startApp()
and the console display:
[error] Sikuli Jython API already on sys.path, but not from sikuli-basics.jar
[error] Found here: C:\jython2.5.2\Lib\site-packages\sikuli\Sikuli.py
I would appreciate if you could give support please?
//RB
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.