playwright.controller.NavPanel
playwright.controller.NavPanel(self, page, id, panel_value)
Controller for shiny.express.ui.nav_panel
.
Attributes
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
click
playwright.controller.NavPanel.click(timeout=None)
Clicks the nav panel.
Parameters
timeout |
Timeout |
The maximum time to wait for the nav panel to be visible and interactable. Defaults to None . |
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. |
required |
timeout |
Timeout |
The maximum time to wait for the expectation to pass. Defaults to None . |
None |