playwright.controller.OutputUi

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

Controller for shiny.express.ui.output_ui.

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_container_tag Asserts that the output has the expected container tag.
expect_empty Asserts that the output is empty.
expect_inline Asserts that the output is inline.

expect_container_tag

playwright.controller.OutputUi.expect_container_tag(value, *, timeout=None)

Asserts that the output has the expected container tag.

Parameters

value: Literal[‘span’, ‘div’] | str

The expected container tag.

timeout: Timeout = None

The maximum time to wait for the container tag to appear. Defaults to None.

expect_empty

playwright.controller.OutputUi.expect_empty(value, *, timeout=None)

Asserts that the output is empty.

Parameters

value: bool

Whether the output is empty.

timeout: Timeout = None

The maximum time to wait for the output to be empty. Defaults to None.

expect_inline

playwright.controller.OutputUi.expect_inline(value=False, *, timeout=None)

Asserts that the output is inline.

Parameters

value: bool = False

Whether the output is inline.

timeout: Timeout = None

The maximum time to wait for the output to appear. Defaults to None.