playwright.controller.InputRadioButtons
playwright.controller.InputRadioButtons(page, id)Controller for shiny.express.ui.input_radio_buttons.
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_labels | Playwright Locator of the labels of the radio button choices. |
| loc_choices | Playwright Locator of the radio button choices. |
| loc_container | Playwright Locator for the container of the UI element. |
| loc_label | Playwright Locator for the label of the UI element. |
| loc_selected | Playwright Locator of the selected radio button. |
| page | Playwright Page of the Shiny app. |
Methods
| Name | Description |
|---|---|
| expect_choice_labels | Expect the labels of the choices. |
| expect_choices | Expect the radio button 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 radio button. |
| expect_width | Expect the input element to have a specific width. |
| set | Set the selected radio button. |
expect_choice_labels
playwright.controller.InputRadioButtons.expect_choice_labels(
value,
*,
timeout=None,
)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
playwright.controller.InputRadioButtons.expect_choices(value, *, timeout=None)Expect the radio button 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
playwright.controller.InputRadioButtons.expect_inline(value, *, timeout=None)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
playwright.controller.InputRadioButtons.expect_label(value, *, timeout=None)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
playwright.controller.InputRadioButtons.expect_selected(value, *, timeout=None)Expect the selected radio button.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| value | PatternOrStr | None |
The expected value of the selected radio button. | required |
| timeout | Timeout |
The timeout for the expectation. Defaults to None. |
None |
expect_width
playwright.controller.InputRadioButtons.expect_width(value, *, timeout=None)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
playwright.controller.InputRadioButtons.set(selected, *, timeout=None, **kwargs)Set the selected radio button.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| selected | str | The value of the selected radio button. | required |
| timeout | Timeout |
The timeout for the action. Defaults to None. |
None |