playwright.controller.InputCheckboxGroup
self, page, id) playwright.controller.InputCheckboxGroup(
Controller for shiny.express.ui.input_checkbox_group.
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_container | Playwright Locator for the container of the UI element. |
loc_label | Playwright Locator for the label of the UI element. |
page | Playwright Page of the Shiny app. |
Methods
Name | Description |
---|---|
expect_choice_labels | Expect the labels of the choices. |
expect_choices | Expect the checkbox choices. |
expect_inline | Expect the input to be inline. |
expect_label | Expect the label of the input to have a specific text. |
expect_selected | Expect the selected checkboxes. |
expect_width | Expect the input element to have a specific width. |
set | Set the selected checkboxes. |
expect_choice_labels
playwright.controller.InputCheckboxGroup.expect_choice_labels(
value,*,
=None,
timeout )
Expect the labels of the choices.
Parameters
Name | Type | Description | Default |
---|---|---|---|
value | ListPatternOrStr |
The expected labels. | required |
timeout | Timeout |
The timeout for the expectation. Defaults to None . |
None |
expect_choices
*, timeout=None) playwright.controller.InputCheckboxGroup.expect_choices(value,
Expect the checkbox choices.
Parameters
Name | Type | Description | Default |
---|---|---|---|
value | ListPatternOrStr |
The expected choices. | required |
timeout | Timeout |
The timeout for the expectation. Defaults to None . |
None |
expect_inline
*, timeout=None) playwright.controller.InputCheckboxGroup.expect_inline(value,
Expect the input to be inline.
Parameters
Name | Type | Description | Default |
---|---|---|---|
value | bool | Whether the input is inline. | required |
timeout | Timeout |
The timeout for the expectation. Defaults to None . |
None |
expect_label
*, timeout=None) playwright.controller.InputCheckboxGroup.expect_label(value,
Expect the label of the input to have a specific text.
Parameters
Name | Type | Description | Default |
---|---|---|---|
value | PatternOrStr |
The expected text value of the label. | required |
timeout | Timeout |
The maximum time to wait for the expectation to be fulfilled. Defaults to None . |
None |
expect_selected
*, timeout=None) playwright.controller.InputCheckboxGroup.expect_selected(value,
Expect the selected checkboxes.
Parameters
Name | Type | Description | Default |
---|---|---|---|
value | ListPatternOrStr |
The expected values of the selected checkboxes. | required |
timeout | Timeout |
The timeout for the expectation. Defaults to None . |
None |
expect_width
*, timeout=None) playwright.controller.InputCheckboxGroup.expect_width(value,
Expect the input element to have a specific width.
Parameters
Name | Type | Description | Default |
---|---|---|---|
value | AttrValue |
The expected width. | required |
timeout | Timeout |
The maximum time to wait for the expectation to be fulfilled. Defaults to None . |
None |
set
set(
playwright.controller.InputCheckboxGroup.
selected,*,
=None,
timeout**kwargs,
)
Set the selected checkboxes.
Parameters
Name | Type | Description | Default |
---|---|---|---|
selected | ListOrTuple [str] |
The values of the selected checkboxes. | required |
timeout | Timeout |
The timeout for the action. Defaults to None . |
None |