How do I find an element in a DataTable?
Elements in a DataTable will end up with one or more index numbers in the id. That can make them more difficult to work with. However, it’s really not that hard once you understand UsingComponentIDs. There is a section of the aformentioned document that deals directly with finding elements on your page that were rendered as part of a collection. If all else fails, you can use FireBug to look at the HTML source and then use HTMLUnit to query elements using XPath. Using the HtmlUnit API with JSFUnit for a short tutorial on using JSFUnit and HTMLUnit together. FireBug can even help you formulate your XPath query.