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
271 stars 116 forks source link

Ability to find elements in Class Table shall be improved #116

Closed IgorBM closed 8 years ago

IgorBM commented 8 years ago

I have to test a table with the following structure:

Thus, when I declare it like: @FindBy(xpath = "//table") private Table rosterTable; In case of empty table with a single row to be filled, I've got 3 rows - one for header, one for footer, 8 for tbody and it fails with this error on the line 143 in Table.java: for (List row : rows) { if (row.size() != headings.size()) { throw new HtmlElementsException("Headings count is not equal to number of cells in row"); } Could you introduce some flexibility to handle such table structures, so rows are being located under tbody, for example?
....
....