playwright.controller.OutputCode
playwright.controller.OutputCode(self, page, id)
Controller for shiny.express.ui.output_code
.
Attributes
Name | Description |
---|---|
id | The ID of the output control. |
loc | Playwright Locator of the code output. |
page | Playwright Page of the Shiny app. |
Methods
Name | Description |
---|---|
expect_has_placeholder | Asserts that the code output has the expected placeholder. |
expect_value | Asserts that the output has the expected value. |
expect_has_placeholder
playwright.controller.OutputCode.expect_has_placeholder(value=False, *, timeout=None)
Asserts that the code output has the expected placeholder.
Parameters
value: bool = False
-
Whether the code output has a placeholder.
timeout:
Timeout
= None-
The maximum time to wait for the placeholder to appear. Defaults to
None
.
expect_value
playwright.controller.OutputCode.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
.