ht92/crawljax — pull request #3 by chris-yoon90 (2013-03-24 07:26:46+00:00)
Title: Commented out code snipets that uses CrawlAttribute.java

Here it is for the first try of Issue 135. I basically traced the crawl initialization and commented out stuff that uses CrawlAttributes.java. Now if we call withAttribute() or withText(), it will update the underXPath in CrawlElement.java.

TODO: I realized that withAttribute() and withText() before basically added CrawlAttributes object into a list. The reason is because that users can call methods like below:

builder.crawlRules().click("a").withAttribute("x", "blah").withAttribute("y", "blahblah"). ........

The above method call basically tells the crawler that we want to click "a" tag with attribute x and y with values blah and blahblah. So in order to preserve this functionality, I think we need to make underXPath into a list as well.