From 64f48b088c50f273f42ff0864b55ebbb9ef85269 Mon Sep 17 00:00:00 2001 From: Lukas Hellebrandt Date: Wed, 4 Sep 2024 12:38:12 +0200 Subject: [PATCH] Fix sattable locators --- airgun/widgets.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/airgun/widgets.py b/airgun/widgets.py index 607c6d20d..ff5a35d3d 100644 --- a/airgun/widgets.py +++ b/airgun/widgets.py @@ -1936,8 +1936,12 @@ class SatTable(Table): """ - HEADERS = "./thead/tr/th[not(@hidden)]|./tr/th[not(@hidden)]|./thead/tr/td[not(@hidden)]" - COLUMN_RESOLVER_PATH = "/td[not(@hidden)]" + HEADER_IN_ROWS = "./tbody/tr[1]/th[not(@hidden)]" + HEADERS = ( + "./thead/tr/th[not(@hidden)]|./tr/th[not(@hidden)]|./thead/tr/td[not(@hidden)]" + + "|" + + HEADER_IN_ROWS + ) COLUMN_AT_POSITION = "./td[not(@hidden)][{0}]" no_rows_message = (