Closed php-coder closed 4 years ago
I've submitted this to the upstream too: https://github.com/robotframework/SeleniumLibrary/issues/1437
This is not so straight forward, as th is header at every place, even at rows (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th).
This is also how the keyword is documented; Verify the content of any table header cells of the table
Table Header Should Contain
keyword is looking for<th>
elements everywhere in a table:https://github.com/Hi-Fi/robotframework-seleniumlibrary-java/blob/fed6f0e95b5cf5a365f8357a9976ec9ed7ff7e1e/src/main/java/com/github/markusbernhardt/seleniumlibrary/locators/TableElementFinder.java#L16
Given that
<th>
tag can be enclosed within<tfoot>
, it doesn't seem right to treat it as a header.