browse(new URL("http://www.twitter.com/search"));
ScreenRegion s = new DesktopScreenRegion();
Target searchButtonImageTarget = new ImageTarget(Images.TwitterSearchButton);
ScreenRegion searchButton = s.wait(searchButtonImageTarget, 5000);
// Pause one second to allow search results to load
pause(1000);
keyboard.type("sikuli");
ScreenLocation outside = Relative.to(searchButton).right(50).center().getScreenLocation();
mouse.click(outside);
mouse.click(searchButton.getCenter());
// Pause one second to allow search results to load
pause(1000);
// Scroll-down until the "View All Tweets Link" becomes visible
Target viwAllTweetsLinkImageTarget = new ImageTarget(Images.TwitterViewAllTweetsLink);
while (s.find(viwAllTweetsLinkImageTarget) == null) {
keyboard.type(Key.PAGE_DOWN);
}
// Find and click on the link