Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HtmlTable does not work properly on tables that have <th> inside <tbody> #188

Open
vace117 opened this issue Apr 1, 2021 · 0 comments
Open

Comments

@vace117
Copy link

vace117 commented Apr 1, 2021

The problem is in this method:

private List<WebElement> cellsIn(WebElement row) {

This makes the class completely ignore <th> cells in table rows, making it impossible to match on the content of those cells.

The xpath should be changed to look for <td> or <th>, as per the HTML5 spec:
https://html.spec.whatwg.org/multipage/tables.html#the-th-element

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant