Use to define a table on your page that you want to interact with. Once table is defined, you can validate it using should and waitTo . Groovy def summaryTable = browser.table("#summary") summaryTable.should == [ "column A" | "column B" | "column C"] { _______________________________________ "A-1" | "B-1" | "C-1" "A-2" | "B-2" | "C-2" } Java var summaryTable = browser.table("#summary"); summaryTable.should(equal(table("column A", "column B", "column C", ____________________________________, "A-1" , "B-1", "C-1", "A-2" , "B-2", "C-2" ))); More details in matchers/tables Matchers
Use to extract TableData for further processing, e.g. saving to a disk: Groovy def summaryTable = browser.table("#summary") def tableData = summaryTable.extractTableData() data.csv.write("table-data.csv", tableData) Java var summaryTable = browser.table("#summary"); var tableData = summaryTable.extractTableData(); data.csv.write("table-data.csv", tableData); Use to extract TableData from multiple tables matching the selector: Groovy def tablesList = browser.table("table") def combinedTableData = tablesList.extractAndMergeTableData() data.csv.write("combined-table-data.csv", combinedTableData) Java var tablesList = browser.table("table"); var combinedTableData = tablesList.extractAndMergeTableData(); data.csv.write("combined-table-data.csv", combinedTableData); Note: Only first table columns will be used
WebTau supports standard HTML tables and https://www.ag-grid.com AG Grid.There is a mechanism to register new parsers. If you are interested in contributing a parser or learn how to do it, please https://github.com/testingisdocumenting/webtau/issues create a ticket