← 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:
java -cp $SIKULI_HOME/selenium.jar     $SIKULI_HOME/sikuli-script.jar -i

should work.

at the interactive prompt:
> from sikuli import * # not needed - already done
> from org import * # does not make any sense
> from org.openqa import *  # does not make any sense
> import org.openqa.selenium.firefox.FirefoxDriver as FF # this is the winner ;-)
>ff = FF() # should give you the browser object

App("text from the FF window title").focus() # should bring the FF window to front
ffWin = Region(App.getFocusedWindow()) # should be the region of the FF window

now you should have the region for Sikuli (ffWin) and the browser object
for Selenium (ff)

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