playwright.controller.OutputTable

playwright.controller.OutputTable(self, page, id)

Controller for shiny.express.ui.output_table.

Attributes

Name Description
id The ID of the output control.
loc Playwright Locator of the output control.
page Playwright Page of the Shiny app.

Methods

Name Description
expect_cell Asserts that the table cell has the expected text.
expect_column_labels Asserts that the table has the expected column labels.
expect_column_text Asserts that the column has the expected text.
expect_ncol Asserts that the table has the expected number of columns.
expect_nrow Asserts that the table has the expected number of rows.

expect_cell

playwright.controller.OutputTable.expect_cell(value, row, col, *, timeout=None)

Asserts that the table cell has the expected text.

Parameters

Name Type Description Default
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

Name Type Description Default
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

Name Type Description Default
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

Name Type Description Default
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

Name Type Description Default
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