← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #192180]: integrate WebDriver (Selenium 2.0) into Sikuli IDE

 

Question #192180 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/192180

    Status: Open => Answered

RaiMan proposed the following answer:
--- Python 2.6 is the requirement of webdriver, as it complains the above SyntaxError when interpreting the webdriver module in Sikuli X.
You cannot run Sikuli scripts with a Python interpreter. You have to use either the Sikuli built-in features to use the Jython interpreter or use a standalone Jython 2.5.2 Jython version.

--- how do I do call java classes in my Sikuli scripts?
use import to get them known
e.g. (roughly ;-)
import java.awt.Robot as myRobot
r = myRobot.robot()
r.captureScreen()

according to the API docs of the respective classes

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.