playwright.controller.OutputTable
playwright.controller.OutputTable(self, page, id)
Controller for shiny.express.ui.output_table
.
Attributes
id |
The ID of the output control. |
loc |
Playwright Locator of the output control. |
page |
Playwright Page of the Shiny app. |
Methods
expect_cell
playwright.controller.OutputTable.expect_cell(value, row, col, *, timeout=None)
Asserts that the table cell has the expected text.
Parameters
value |
PatternOrStr |
The expected text in the cell. |
required |
row |
int |
The row number. |
required |
col |
int |
The column number. |
required |
timeout |
Timeout |
The maximum time to wait for the text to appear. Defaults to None . |
None |
expect_column_labels
playwright.controller.OutputTable.expect_column_labels(value, *, timeout=None)
Asserts that the table has the expected column labels.
Parameters
value |
ListPatternOrStr | None |
The expected column labels. If None, it asserts that the table has no column labels. |
required |
timeout |
Timeout |
The maximum time to wait for the column labels to appear. Defaults to None . |
None |
expect_column_text
playwright.controller.OutputTable.expect_column_text(
col,
value,
*,
timeout=None,
)
Asserts that the column has the expected text.
Parameters
col |
int |
The column number. |
required |
value |
ListPatternOrStr |
The expected text in the column. |
required |
timeout |
Timeout |
The maximum time to wait for the text to appear. Defaults to None . |
None |
expect_ncol
playwright.controller.OutputTable.expect_ncol(value, *, timeout=None)
Asserts that the table has the expected number of columns.
Parameters
value |
int |
The expected number of columns in the table. |
required |
timeout |
Timeout |
The maximum time to wait for the table to have the expected number of columns. Defaults to None . |
None |
expect_nrow
playwright.controller.OutputTable.expect_nrow(value, *, timeout=None)
Asserts that the table has the expected number of rows.
Parameters
value |
int |
The expected number of rows in the table. |
required |
timeout |
Timeout |
The maximum time to wait for the table to have the expected number of rows. Defaults to None . |
None |