playwright.controller.NavPanel
playwright.controller.NavPanel(self, page, id, panel_value)
Controller for shiny.express.ui.nav_panel
.
Attributes
Name | Description |
---|---|
expect | Expectation method equivalent to playwright.expect(self.loc) . |
id | The browser DOM id of the UI element. |
loc | Playwright Locator for the nav panel. |
loc_container | Playwright Locator for the nav panel container. |
loc_content | Returns the locator for the content of the nav panel. |
page | Playwright Page of the Shiny app. |
panel_value | The data-value attribute used to identify the nav panel within the larger navset. |
Methods
Name | Description |
---|---|
click | Clicks the nav panel. |
expect_active | Expects the nav panel to be active or inactive. |
click
playwright.controller.NavPanel.click(timeout=None)
Clicks the nav panel.
Parameters
timeout:
Timeout
= None-
The maximum time to wait for the nav panel to be visible and interactable. Defaults to
None
.
expect_active
playwright.controller.NavPanel.expect_active(value, *, timeout=None)
Expects the nav panel to be active or inactive.
Parameters
value: bool
-
True
if the nav panel is expected to be active, False otherwise. timeout:
Timeout
= None-
The maximum time to wait for the expectation to pass. Defaults to
None
.