playwright.controller.OutputPlot
playwright.controller.OutputPlot(page, id)
Controller for shiny.express.ui.output_plot.
Attributes
| id | The ID of the output control. | 
| loc | Playwright Locatorof the plot output. | 
| loc_img | Playwright Locatorof the image. | 
| page | Playwright Pageof the Shiny app. | 
Methods
expect_container_tag
playwright.controller.OutputPlot.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. | required | 
| timeout | Timeout | The maximum time to wait for the container tag to appear. Defaults to None. | None | 
expect_height
playwright.controller.OutputPlot.expect_height(value, *, timeout=None)
Asserts that the image has the expected height.
Parameters
| value | StyleValue | The expected height. | required | 
| timeout | Timeout | The maximum time to wait for the height to appear. Defaults to None. | None | 
expect_img_alt
playwright.controller.OutputPlot.expect_img_alt(value, *, timeout=None)
Asserts that the image has the expected alt text.
Parameters
| value | AttrValue | The expected alt text. | required | 
| timeout | Timeout | The maximum time to wait for the alt text to appear. Defaults to None. | None | 
expect_img_height
playwright.controller.OutputPlot.expect_img_height(value, *, timeout=None)
Asserts that the image has the expected height.
Parameters
| value | AttrValue | The expected height. | required | 
| timeout | Timeout | The maximum time to wait for the height to appear. Defaults to None. | None | 
expect_img_src
playwright.controller.OutputPlot.expect_img_src(value, *, timeout=None)
Asserts that the image has the expected src.
Parameters
| value | AttrValue | The expected src. | required | 
| timeout | Timeout | The maximum time to wait for the src to appear. Defaults to None. | None | 
expect_img_width
playwright.controller.OutputPlot.expect_img_width(value, *, timeout=None)
Asserts that the image has the expected width.
Parameters
| value | AttrValue | The expected width. | required | 
| timeout | Timeout | The maximum time to wait for the width to appear. Defaults to None. | None | 
expect_inline
playwright.controller.OutputPlot.expect_inline(value=False, *, timeout=None)
Asserts that the output is inline.
Parameters
| value | bool | Whether the output is inline. | False | 
| timeout | Timeout | The maximum time to wait for the output to appear. Defaults to None. | None | 
expect_width
playwright.controller.OutputPlot.expect_width(value, *, timeout=None)
Asserts that the image has the expected width.
Parameters
| value | StyleValue | The expected width. | required | 
| timeout | Timeout | The maximum time to wait for the width to appear. Defaults to None. | None |