sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #27231
Re: [Question #248040]: Import Selenium into Sikuli script
Question #248040 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/248040
Status: Open => Answered
RaiMan proposed the following answer:
-- 1.1.0
since it is still Beta, there is always a risk when upgrading.
I do not recommend to do that, but instead make some tests in "sandbox", so your current installation is not affected.
--- Jython 2.7
-- download from:
http://search.maven.org/remotecontent?filepath=org/python/jython-standalone/2.7-b2/jython-standalone-2.7-b2.jar
-- put it in a separate folder
--- go to that folder and run:
java -jar jython-standalone-2.7-b2.jar
… as a test: should open an interactive Jython session
--- to run with Sikuli features:
java -cp <path-to-sikuli-jar> -jar jython-standalone-2.7-b2.jar
<path-to-sikuli-jar> absolute path to sikuli-java.jar (1.0.1) or
sikulixapi.jar (1.1.0)
again an interactive session should open.
enter:
import org.sikuli.basics.SikuliXforJython
from sikuli import *
the first sets up the Jython path for the usage of the Sikuli features,
whereas the second is the known initialization.
running
java -jar jython-standalone-2.7-b2.jar -h
reveals some command line options, that might help (e.g.
-Dsikuli.Debug=3)
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.