yandex-qatools / htmlelements

Html Elements is a Java framework providing easy-to-use way of interaction with web-page elements in web-page tests.
Other
270 stars 116 forks source link

Table.getColumns() incorrectly handles tables with <th> tags in first row #88

Closed AlexWyrm closed 8 years ago

AlexWyrm commented 9 years ago

This line https://github.com/yandex-qatools/htmlelements/blob/master/htmlelements-java/src/main/java/ru/yandex/qatools/htmlelements/element/Table.java#L91 makes this method work incorrectly for tables with only tags in the first row. Because getRows() returns only elements, size of the first row will be 0 and method will return empty list.