playwright.controller.NavsetTab
playwright.controller.NavsetTab(self, page, id)
Controller for shiny.express.ui.navset_tab
.
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 set tab. |
loc_container | Playwright Locator for the nav set tab container. |
page | Playwright Page of the Shiny app. |
Methods
Name | Description |
---|---|
expect_nav_titles | Expects the control to have the specified nav titles. |
expect_nav_values | Expects the control to have the specified nav values. |
expect_value | Expects the control to have the specified value. |
get_loc_active_content | Returns the locator for the active content. |
nav_panel | Returns the nav panel (NavPanel ) with the specified value. |
set | Sets the state of the control to open or closed. |
expect_nav_titles
playwright.controller.NavsetTab.expect_nav_titles(value, *, timeout=None)
Expects the control to have the specified nav titles.
Parameters
value:
list
[PatternOrStr
]-
The expected nav titles.
timeout:
Timeout
= None-
The maximum time to wait for the expectation to pass. Defaults to
None
.
expect_nav_values
playwright.controller.NavsetTab.expect_nav_values(value, *, timeout=None)
Expects the control to have the specified nav values.
Parameters
value:
list
[PatternOrStr
]-
The expected nav values.
timeout:
Timeout
= None-
The maximum time to wait for the expectation to pass. Defaults to
None
.
expect_value
playwright.controller.NavsetTab.expect_value(value, *, timeout=None)
Expects the control to have the specified value.
Parameters
value:
PatternOrStr
-
The expected value.
timeout:
Timeout
= None-
The maximum time to wait for the expectation to pass. Defaults to
None
.
get_loc_active_content
playwright.controller.NavsetTab.get_loc_active_content(timeout=None)
Returns the locator for the active content.
Parameters
timeout:
Timeout
= None-
The maximum time to wait for the locator to appear. Defaults to
None
.
nav_panel
playwright.controller.NavsetTab.nav_panel(value)
Returns the nav panel (NavPanel
) with the specified value.
Parameters
value: str
-
The value of the nav panel.
set
playwright.controller.NavsetTab.set(value, *, timeout=None)
Sets the state of the control to open or closed.
Parameters
value: str
-
The selected nav item.