New question #188596 on Sikuli:
https://answers.launchpad.net/sikuli/+question/188596
Hi,
I trying to write a test script that contain a self defined function
(go_there). They are all located under the same file. I'm not importing
anything. The error i am getting is
Exception in thread "AWT-EventQueue-0" SyntaxError: ("no viable alternative at
input 'def'", ('', 42, 13, '\t run def do_it();\n'))
Everything is working fine if i commented the line "run def go_there()".
def setUp(self):
# some working codes here
def go_there():
popup("I'm here")
def test_case1(self):
run def go_there() <--- take out this, the script runs well.
wait(image1)
assert exists(image1)
Please anyone advise me on this ?
Thanks.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp