sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #38690
Re: [Question #295568]: Robot framework, Sikuli hello_world demo script is failing?
Question #295568 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/295568
wang yang posted a new comment:
How do you installed this library, pip or source installation?
If sikuli ide is works in your environment, this library should also
works.
If still has problem, you may start the server manually which is
provided in https://github.com/rainmanwy/robotframework-SikuliLibrary
command like:
java -jar SikuliLibrary.jar 10000 .
Then use remote library to connect it, and call some keywords.
for example
server part:
rainman@ubuntu:~/workspace/GitHub/robotframework-SikuliLibrary/target/src/SikuliLibrary/lib$ java -jar SikuliLibrary.jar 10000 .
1 [main] INFO org.robotframework.remoteserver.RemoteServer - Mapped path / to library com.github.rainmanwy.robotframework.sikulilib.SikuliLibrary.
2 [main] INFO org.robotframework.remoteserver.RemoteServer - Robot Framework remote server starting
2 [main] INFO org.eclipse.jetty.server.Server - jetty-7.x.y-SNAPSHOT
61 [main] INFO org.eclipse.jetty.server.handler.ContextHandler - started o.e.j.s.ServletContextHandler{/,null}
230 [main] INFO org.eclipse.jetty.server.AbstractConnector - Started SelectChannelConnector@0.0.0.0:10000
231 [main] INFO org.robotframework.remoteserver.RemoteServer - Robot Framework remote server started on port 10000.
[info] runcmd: lsb_release -i -r -s
client part:
rainman@ubuntu:~$ python
Python 2.7.6 (default, Mar 22 2014, 22:59:38)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from robot.libraries.Remote import Remote
>>> remote = Remote('http://127.0.0.1:10000/')
>>> remote.get_keyword_names()
['clickIn', 'mouseDown', 'dragAndDrop', 'addImagePath', 'highlight', 'wheelDown', 'pressSpecialKey', 'rightClickIn', 'clearAllHighlights', 'waitUntilScreenContain', 'mouseMove', 'inputText', 'waitUntilScreenNotContain', 'wheelUp', 'doubleClickIn', 'click', 'captureScreen', 'rightClick', 'setTimeout', 'doubleClick', 'screenShouldContain', 'clearHighlight', 'screenShouldNotContain', 'mouseUp', 'setCaptureFolder', 'pasteText', 'getMatchScore', 'setMinSimilarity', 'stop_remote_server']
>>>
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.