SikuliFirefoxDriver extends Selenium’s FirefoxDriver by adding Sikuli’s image search capability. It is useful for automating interactions with highly visual interfaces such as Google Map, captcha(if the Image is same for Test Environment),and also for upload functionality).
Since SikuliFirefoxDriver directly inherits from Selenium’s FirefoxDriver class, you can use all existing methods provided by FirefoxDriver
Example below that uses findElement(By …) to locate Google Code’s search box and enter “AssertSelenium” as a search string:
findImageElement() is the method that allows one to find an element using an image.
How to Initialize SikuliFireFoxDriver ?
SikuliFirefoxDriver driver = new SikuliFirefoxDriver(); driver.get("http://code.google.com"); ImageElement image = driver.findImageElement(new URL("http://code.google.com/images/code_logo.gif"));
If you have used Sikuli before, its good to have a look at this. Other’s who haven’t tried Integrating Sikuli with Selenium , no more worries its already done here. The SikuliFireFoxDriver
The Page Object pattern is also supported and hence we can get the best out of this implementation.
A clean example is provided by the Developer’s themselves and its pretty explanatory.
Kudo’s to the team