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

value: PatternOrStr

The expected text in the cell.

row: int

The row number.

col: int

The column number.

timeout: Timeout = None

The maximum time to wait for the text to appear. Defaults to 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.

timeout: Timeout = None

The maximum time to wait for the column labels to appear. Defaults to 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.

value: ListPatternOrStr

The expected text in the column.

timeout: Timeout = None

The maximum time to wait for the text to appear. Defaults to 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.

timeout: Timeout = None

The maximum time to wait for the table to have the expected number of columns. Defaults to 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.

timeout: Timeout = None

The maximum time to wait for the table to have the expected number of rows. Defaults to None.