How to pass an image as argument into subroutine
Hi all,
I'd like to fill-in a form repeatedly using a subroutine for this task, e.g.
def fill_form(
click(xxxxx) # captured image
type(code)
click(yyyyy) # captured image
click(image) # image passed as the argument
click(zzzzz) # captured image
...
click(OK) # captured image
fill_form(
fill_form(
etc...
image1 is the captured image having name i.png, which *exists* in the same folder where .py script resides. When I run the script, I got the error:
Traceback (most recent call last):
File "C:\Users\
fill_
File "C:\Users\
click(image)
File "C:\Program Files\Sikuli X\sikuli-
Line 11, in file C:\Users\
at org.sikuli.
at org.python.
at sun.reflect.
at sun.reflect.
at sun.reflect.
at java.lang.
org.sikuli.
Line 11, in file C:\Users\
Please, could somebody point me what I'm missing?
Thx, pf
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Petr Fejfar
- Solved:
- Last query:
- Last reply: