playwright.controller.ToolbarInputSelect
playwright.controller.ToolbarInputSelect(page, id)Controller for shiny.express.ui.toolbar_input_select.
Attributes
| Name | Description |
|---|---|
| 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_choice_groups | Playwright Locator for optgroup elements. |
| loc_choices | Playwright Locator for all option elements. |
| loc_icon | Playwright Locator for the icon element. |
| loc_label | Playwright Locator for the label element. |
| loc_select | Playwright Locator for the internal select element. |
| loc_selected | Playwright Locator for the currently selected option. |
| page | Playwright Page of the Shiny app. |
Methods
| Name | Description |
|---|---|
| expect_choice_groups | Expect the optgroup labels of the toolbar select. |
| expect_choices | Expect the available choices of the toolbar select. |
| expect_icon | Expect the toolbar select to have an icon. |
| expect_icon_visible | Expect the icon to be visible. |
| expect_label | Expect the label text of the toolbar select. |
| expect_label_visible | Expect the label to be visible or hidden. |
| expect_selected | Expect the currently selected value of the toolbar select. |
| set | Set the selected value of the toolbar select input. |
expect_choice_groups
playwright.controller.ToolbarInputSelect.expect_choice_groups(
labels,
*,
timeout=None,
)Expect the optgroup labels of the toolbar select.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| labels | list[str] |
The expected list of optgroup labels. | required |
| timeout | Timeout |
The maximum time to wait for the expectation to be fulfilled. Defaults to None. |
None |
expect_choices
playwright.controller.ToolbarInputSelect.expect_choices(
choices,
*,
timeout=None,
)Expect the available choices of the toolbar select.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| choices | list[str] |
The expected list of choice values. | required |
| timeout | Timeout |
The maximum time to wait for the expectation to be fulfilled. Defaults to None. |
None |
expect_icon
playwright.controller.ToolbarInputSelect.expect_icon(
exists=True,
*,
timeout=None,
)Expect the toolbar select to have an icon.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| exists | bool | Whether the icon should exist. | True |
| timeout | Timeout |
The maximum time to wait for the expectation to be fulfilled. Defaults to None. |
None |
expect_icon_visible
playwright.controller.ToolbarInputSelect.expect_icon_visible(
visible=True,
*,
timeout=None,
)Expect the icon to be visible.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| visible | bool | Whether the icon should be visible. | True |
| timeout | Timeout |
The maximum time to wait for the expectation to be fulfilled. Defaults to None. |
None |
expect_label
playwright.controller.ToolbarInputSelect.expect_label(value, *, timeout=None)Expect the label text of the toolbar select.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| value | str | The expected label text. | required |
| timeout | Timeout |
The maximum time to wait for the expectation to be fulfilled. Defaults to None. |
None |
expect_label_visible
playwright.controller.ToolbarInputSelect.expect_label_visible(
visible,
*,
timeout=None,
)Expect the label to be visible or hidden.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| visible | bool | Whether the label should be visible. | required |
| timeout | Timeout |
The maximum time to wait for the expectation to be fulfilled. Defaults to None. |
None |
expect_selected
playwright.controller.ToolbarInputSelect.expect_selected(value, *, timeout=None)Expect the currently selected value of the toolbar select.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| value | str | The expected selected value. | required |
| timeout | Timeout |
The maximum time to wait for the expectation to be fulfilled. Defaults to None. |
None |
set
playwright.controller.ToolbarInputSelect.set(value, *, timeout=None)Set the selected value of the toolbar select input.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| value | str | The value to select. | required |
| timeout | Timeout |
The maximum time to wait for the selection to be set. Defaults to None. |
None |