diff --git a/airgun/widgets.py b/airgun/widgets.py index 76e06a4c6..3a9f05205 100644 --- a/airgun/widgets.py +++ b/airgun/widgets.py @@ -1881,6 +1881,8 @@ class SatTable(Table): If the table is empty, there might be only one column with an appropriate message in the table body, or it may have no columns or rows at all. This subclass handles both possibilities. + It also ignores all hidden columns, which some tables might contain, like the Hosts table. + Example html representation:: @@ -1907,6 +1909,10 @@ class SatTable(Table): """ + HEADERS = "./thead/tr/th[not(@hidden)]|./tr/th[not(@hidden)]|./thead/tr/td[not(@hidden)]" + COLUMN_RESOLVER_PATH = "/td[not(@hidden)]" + COLUMN_AT_POSITION = "./td[not(@hidden)][{0}]" + no_rows_message = ( ".//td/span[contains(@data-block, 'no-rows-message') or " "contains(@data-block, 'no-search-results-message')]"