1. Download and setup Sikuli
To get started, please download Sikuli.
Once downloaded, run the file to install Sikuli.
2. Create a new Sikuli script
Sikuli uses image-recognition to find the components to interact with.
In this example, we'll take a screenshot of a Chrome dialog asking to install a Chrome extension.
3. The Sikuli script
As you can see on the screenshot above, you can use
wait([image], FOREVER) to have Sikuli wait for something to appear on the screen that looks like the
Once this happens, Sikuli will move on to the next step in the script: clicking the component it detected.
4. Integration with TestingBot
At TestingBot, we can run your Sikuli script at the start of your Selenium WebDriver test.
Simply create a zip-file with one or more of your .sikuli scripts inside. Then use this URL in your
DesiredCapabilities when starting a test. This way you can run Sikuli tests in the cloud on all our Platforms.
DesiredCapabilities caps = new DesiredCapabilities(); caps.setCapability("platform", "VISTA"); caps.setCapability("version", "9"); caps.setCapability("browserName", "internet explorer"); caps.setCapability("sikuli", "http://mywebsite.com/sikuli-scripts.zip");
This will make sure TestingBot will download your Sikuli script and run it at the start of your test.