Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I find an element in a DataTable?

datatable element
0
Posted

How do I find an element in a DataTable?

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.