problems when importing other sikuli script
In the sub script named 'Common':
from sikuli import *
import time
def find_submenu_
print(
click(mainMenu)
time.sleep(1)
match1 = SCREEN.
return match1
In the main script named 'AboutTest':
import Common
reload(Common)
aboutMenu=
subMenu1="subMenu1"
#okButton1=
match1 = Common.
When I ran the main script, I got the following error messages:
[error] script [ AboutTest ] stopped with error in line 10
[error] NameError ( global name 'click' is not defined )
[error] --- Traceback --- error source first
line: module ( function ) statement
7: Common ( find_submenu_
10: main ( <module> ) match1 = Common.
[error] --- Traceback --- end --------------
I am using SikuliX IDE 2.1.0 and Java 17.
I don't know what's wrong.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Chang, HyukSoo
- Solved:
- Last query:
- Last reply: