CrawlSpecification crawler = new CrawlSpecification("http://www.google.com");
crawler.setWaitTimeAfterEvent(500);
crawler.setWaitTimeAfterReloadUrl(500);
// click on all anchor tags
crawler.click("a");
// and all input tags with "submit"
crawler.click("input").withAttribute("type", "submit");
// exclude these
crawler.dontClick("a").underXPath("//DIV[@id='guser']");