Skip to content

Commit

Permalink
Just td, not td,th
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw authored Sep 4, 2024
1 parent 399e34a commit 8e1fee8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion playwright/testing-tables.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function tableToJson() {
rows: Array.from(table.querySelectorAll("tr"))
.slice(1)
.map((tr) => {
return Array.from(tr.querySelectorAll("td, th")).map((cell) =>
return Array.from(tr.querySelectorAll("td")).map((cell) =>
cell.textContent.trim(),
);
}),
Expand Down

0 comments on commit 8e1fee8

Please sign in to comment.