+1 vote
1 view
in DevOps and Agile by (19.8k points)

I'm extensively using Selenium for integration testing. Works great for all normal stuff (HTML/AJAX), but no go when I'm trying to test third party ActiveX, Java applets and Flash components.

The solution I've found for this is Sikuli. Works great locally, but how can I integrate that into Selenium?

btw. if that's relevant, for Selenium I'm using Python API.

1 Answer

0 votes
by (63.4k points)

See the Python section of the Selenium RC documentation: http://seleniumhq.org/docs/05_selenium_rc.html#python

You can run selenium tests from Jython. In that case, you will just have to integrate Selenium scripts into your Sikuli scripts.

Try the following in the Sikuli IDE. You may modify the import statements to point to specific files in the selenium project.

from selenium import selenium 

slm = selenium("localhost", 4444, "*firefox", "https://www.intellipaat.com/")

slm.start()

# etc...

This guy seems to have had success controlling selenium from Jython: http://adam.goucher.ca/?p=367

My conclusion: it'll probably be easiest to remain in Jython and control selenium from there. You could integrate both tools into one script.

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...