sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #59573
[Question #820084]: errors with running simple sikulix script
New question #820084 on SikuliX:
https://answers.launchpad.net/sikuli/+question/820084
I'm getting this error when running my simple Sikulix Script:
[error] Element: handleImageMissing: Response.ABORT: aborting
[error] script [ main ] stopped with error in line 8
[error] java.lang.NullPointerException ( java.lang.NullPointerException: Cannot invoke "org.sikuli.script.Finder.hasNext()" because "finder" is null )
[error] --- Traceback --- error source first
line: module ( function ) statement
70: Sikuli ( wait ) at org.sikuli.script.Element.executeFind(Element.java:886)
17: utils_testing ( select_page ) click("1737547086214.png")
8: main ( <module> ) utils_testing.select_page()
[error] --- Traceback --- end --------------
I have set up a Sikuli project, with a main test file called 'main.py' and then an additional utils file with several functions, including 'select_page()' function, where that function looks like this:
def select_page():
wait(page.png, 5)
I'm new to Sikuli project set up and coding in general. I created utils file which Sikuli read but after re-saving and re-naming some files, the main test file could no longer import those files correctly and said it was not found, even after making sure the names were correct. I have scripted many automated tests before and am following the same conventions, so I don't know what is going on, or if something buggy is happening.
Any idea what this could be? Are there any quick tips on how to set up a Sikuli project successfully or examples I can take a look at?
--
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.