We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97e0f39 commit ca82ec9Copy full SHA for ca82ec9
utils/table_util.py
@@ -37,10 +37,10 @@ def get_column_index(self, column_name: str) -> int:
37
# Try to find headers in <thead> first
38
header_row = self.table.locator("thead tr").first
39
if not header_row.locator("th").count():
40
- # Fallback: look for header in <tbody> if <thead> is missing or empty
+ # Fallback: look for header in <tbody> if <thead> is missing or empty
41
header_row = (
42
- self.table.locator("tbody tr").filter(has=self.page.locator("th")).first
43
- )
+ self.table.locator("tbody tr").filter(has=self.page.locator("th")).first
+ )
44
45
headers = header_row.locator("th")
46
header_texts = headers.evaluate_all("ths => ths.map(th => th.innerText.trim())")
0 commit comments