How to create a new function in the SikuliRemoteLibrary.py under the framework of RF+selenium+sikuli
Eenvironment: Robot Framework 2.8.4
Description:I use robotremoteserv
Question:
check_object_
class SikuliRemoteLib
def __init__(self):
self.SS = Screen()
self.PT = Pattern()
def check_object_
try:
find = self.SS.
print find
finally:
return state
the testcase in RIDE is:
check object exists right ${图片路径}
RIDE execute error log:
20160413 20:42:25.161 : FAIL : ImportError: No module named sikuli
20160413 20:42:25.162 : DEBUG :
Traceback (most recent call last):
File "SikuliRemoteLi
find = self.SS.
File "<string>", line 1, in <module>
WHY:
I find that,when it define like this it will works well.
find = self.SS.
but if it define like this it will be error .
find = self.SS.
And if I define like this only run by sikulir930 or run by Eclipse+
find = self.SS.
so,how can I define a new function to use this codes: find = self.SS.
thanks a lot !
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask luan0804hua for more information if necessary.