Using Sikuli with Slenium in NetBeans

Asked by Eugene

Hi everyone!
Can anybody tell me, if it's possible to run Sikuli and Selenium together using NetBeans? If yes, can you explain me, or give a link to instructions.
Thanks in Advance

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

Want to use Java or Python?

Revision history for this message
Eugene (eug-2rs) said :
#2

Python

Revision history for this message
RaiMan (raimund-hocke) said :
#3

Then you should first have a look at
http://sikuli.org/docx/faq/040-other-ide.html#how-to-use-sikuli-together-with-other-ide-s

to get Sikuli scripting with Netbeans running.

As the next step you have to integrate the selenium stuff to be used in Sikuli scripts (or vice versa ;-)

Revision history for this message
Eugene (eug-2rs) said :
#4

))) I have already installed Sikuli to net beans as explained at that very link. But the question, how to integrate Selenium there, torments me for several days.

Revision history for this message
RaiMan (raimund-hocke) said :
#5

Not really a Sikuli question ;-)

I had a look into the Python Selenium client selenium-2.20.0 (http://pypi.python.org/pypi/selenium)

This contains a folder structure

selenium-2.20.0
-- py
---- selenium

this selenium folder is the only thing needed for your Netbeans setup with Sikuli

put it in your sys.path (or in the library setup in Ntebeans project) and use

from selenium import web driver
# you script it

the above download page contains an example.

Another possibility is to use Seleniums Java API from your Sikuli Jython scripts, since one of the strength of Jython is the seamless integration of any Java stuff.

Can you help with this problem?

Provide an answer of your own, or ask Eugene for more information if necessary.

To post a message you must log in.