← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #182530]: Selenium python API usage in Sikuli scripts

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
Looking into the Selenium docs at "Python Client Driver Configuration",
I guess you have to do the following:

selDir = "path-to-folder-containing-selenium.py"
if not selDir in sys.path: sys.path.append(selDir)
import selenium

this replaces your
from selenium import selenium

the rest of your code seems ok

from __future__ import with_statement
is not needed, since already done by Sikuli internally.

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