01: package watij.elements;
02:
03: import org.w3c.dom.Element;
04: import watij.finders.TagFinder;
05:
06: import java.util.List;
07:
08: public class TableCells extends HtmlElementCollections<TableCell> {
09:
10: public TableCells(List<Element> list,
11: HtmlElementFactory htmlElementFactory) throws Exception {
12: super (list, htmlElementFactory);
13: }
14:
15: protected TableCell get(Element element) throws Exception {
16: return htmlElementFactory().tableCell(element);
17: }
18:
19: public boolean matches(Element element) throws Exception {
20: return new TagFinder("td").matches(element)
21: || new TagFinder("th").matches(element);
22: }
23: }
|