CrawlRulesBuilder rules = builder.crawlRules();
rules.click("a");
rules.click("div").withText(CLICK_TEXT);
rules.click("div").underXPath("//SPAN[@id='" + CLICK_UNDER_XPATH_ID + "']");
rules.click("button").when(new NotRegexCondition("DONT_CLICK_BUTTONS_ON_THIS_PAGE"));
rules.click("div").withAttribute(ATTRIBUTE, "condition")
.when(new RegexCondition("REGEX_CONDITION_TRUE"));
rules.dontClick("a").withText(DONT_CLICK_TEXT);
rules.dontClick("a").withAttribute(ATTRIBUTE, DONT_CLICK_TEXT);
rules.dontClick("a").underXPath("//DIV[@id='" + DONT_CLICK_UNDER_XPATH_ID + "']");