playwright.controller.NavsetPillList
playwright.controller.NavsetPillList(page, id)
Controller for shiny.express.ui.navset_pill_list.
Attributes
| expect |
Expectation method equivalent to playwright.expect(self.loc). |
| id |
The browser DOM id of the UI element. |
| loc |
Playwright Locator of the UI element. |
| loc_container |
Playwright Locator for the container of the UI element. |
| page |
Playwright Page of the Shiny app. |
Methods
| 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. |
| expect_well |
Expects the navset pill list to have a well. |
| expect_widths |
Expects the navset pill list to have the specified widths. |
| 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.NavsetPillList.expect_nav_titles(value, *, timeout=None)
Expects the control to have the specified nav titles.
Parameters
| value |
list[PatternOrStr] |
The expected nav titles. |
required |
| timeout |
Timeout |
The maximum time to wait for the expectation to pass. Defaults to None. |
None |
expect_nav_values
playwright.controller.NavsetPillList.expect_nav_values(value, *, timeout=None)
Expects the control to have the specified nav values.
Parameters
| value |
list[PatternOrStr] |
The expected nav values. |
required |
| timeout |
Timeout |
The maximum time to wait for the expectation to pass. Defaults to None. |
None |
expect_value
playwright.controller.NavsetPillList.expect_value(value, *, timeout=None)
Expects the control to have the specified value.
Parameters
| value |
PatternOrStr |
The expected value. |
required |
| timeout |
Timeout |
The maximum time to wait for the expectation to pass. Defaults to None. |
None |
expect_well
playwright.controller.NavsetPillList.expect_well(value, *, timeout=None)
Expects the navset pill list to have a well.
Parameters
| value |
bool |
True if the navset pill list is expected to be constructed with a well, False otherwise. |
required |
| timeout |
Timeout |
The maximum time to wait for the expectation to pass. Defaults to None. |
None |
expect_widths
playwright.controller.NavsetPillList.expect_widths(value, *, timeout=None)
Expects the navset pill list to have the specified widths.
Parameters
| value |
ListOrTuple[int] |
The expected widths of the navset pill list. |
required |
| timeout |
Timeout |
The maximum time to wait for the expectation to pass. Defaults to None. |
None |
get_loc_active_content
playwright.controller.NavsetPillList.get_loc_active_content(timeout=None)
Returns the locator for the active content.
Parameters
| timeout |
Timeout |
The maximum time to wait for the locator to appear. Defaults to None. |
None |
nav_panel
playwright.controller.NavsetPillList.nav_panel(value)
Returns the nav panel (NavPanel) with the specified value.
Parameters
| value |
str |
The value of the nav panel. |
required |
set
playwright.controller.NavsetPillList.set(value, *, timeout=None)
Sets the state of the control to open or closed.
Parameters
| value |
str |
The selected nav item. |
required |