playwright.controller.OutputText
playwright.controller.OutputText(self, page, id)
Controller for shiny.express.ui.output_text
.
Attributes
Name | Description |
---|---|
id | The ID of the output control. |
loc | Playwright Locator of the text output. |
page | Playwright Page of the Shiny app. |
Methods
Name | Description |
---|---|
expect_container_tag | Asserts that the output has the expected container tag. |
expect_inline | Asserts that the output is inline. |
expect_value | Asserts that the output has the expected value. |
get_value | Gets the text value of the output. |
expect_container_tag
playwright.controller.OutputText.expect_container_tag(value, *, timeout=None)
Asserts that the output has the expected container tag.
Parameters
expect_inline
playwright.controller.OutputText.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
.
expect_value
playwright.controller.OutputText.expect_value(value, *, timeout=None)
Asserts that the output has the expected value.
Parameters
value:
PatternOrStr
-
The expected value.
timeout:
Timeout
= None-
The maximum time to wait for the value to appear. Defaults to
None
.
get_value
playwright.controller.OutputText.get_value(timeout=None)
Gets the text value of the output.
Parameters
timeout:
Timeout
= None-
The maximum time to wait for the value to appear. Defaults to
None
.