Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
+1 vote
2 views
in DevOps and Agile by (19.7k 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 (62.9k 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.

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...