Skip to content

Fix "Table Footer Should Contain" for <th> cells - #2000

Merged
emanlove merged 3 commits into
robotframework:masterfrom
b-vamsipunnam:fix/1436-table-footer-th
Nov 12, 2026
Merged

emanlove merged 3 commits into
robotframework:masterfrom
b-vamsipunnam:fix/1436-table-footer-th

Conversation

@b-vamsipunnam

Copy link
Copy Markdown
Contributor

Summary

This PR updates Table Footer Should Contain to find text in both <td> and <th> cells inside <tfoot>.

Motivation

A table footer can use a <th> cell for a label like “Total.” The keyword currently searches only <td> cells, so it fails even when the expected text is present.

Implementation

I updated the footer locator and keyword documentation. I also added an HTML fixture with <th> cells in the header, body, and footer so the tests can verify that only footer text matches.

Tests

The five new acceptance tests cover both footer cell types and verify that text in the header, body, or another table’s footer does not match. The footer <th> test failed before the fix and passed afterward.

  • Table acceptance suite in headless Chrome: 40 passed.
  • Python unit suite: 256 passed, 4 skipped.
  • git diff --check passed.

Files Changed

  • src/SeleniumLibrary/keywords/tableelement.py
  • atest/acceptance/keywords/tables/footer_should_contain.robot
  • atest/resources/html/tables/tables.html

Related Issues

Fixes #1436.

Request

If appropriate, could you add the acknowledge label to #1436? Thank you!

@emanlove
emanlove merged commit 65b8732 into robotframework:master Nov 12, 2026
5 checks passed
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

Successfully merging this pull request may close these issues.

"Table Footer Should Contain" should take into account <th> elements

2 participants