← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #226291]: integrating selenium with sikuli ide

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
If you want to use the features from selenium.jar (that is the Java
API), you have to put the jar in the Java class path in all cases.

If you want to use the Java API from within a Sikuli script (Jython
level), you have to import the Selenium classes this way:

import selenium.xxx.yyy.webdriver as WD

now WD is a class shortcut

and then use the webdriver methods as you do on the Java level:

wd = WD() # a new webdriver object
wd.some_method()

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