playwright.controller.InputCheckbox
self, page, id) playwright.controller.InputCheckbox(
Controller for shiny.express.ui.input_checkbox.
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_checked | Expect the input checkbox to be checked. |
expect_label | Expect the label of the input to have a specific text. |
expect_width | Expect the input element to have a specific width. |
set | Sets the input checkbox. |
expect_checked
*, timeout=None) playwright.controller.InputCheckbox.expect_checked(value,
Expect the input checkbox to be checked.
Parameters
Name | Type | Description | Default |
---|---|---|---|
value | bool | Whether the input checkbox is checked. | required |
timeout | Timeout |
The maximum time to wait for the expectation to be fulfilled. Defaults to None . |
None |
expect_label
*, timeout=None) playwright.controller.InputCheckbox.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_width
*, timeout=None) playwright.controller.InputCheckbox.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(value, *, timeout=None, **kwargs) playwright.controller.InputCheckbox.
Sets the input checkbox.
Parameters
Name | Type | Description | Default |
---|---|---|---|
value | bool | The value of the input checkbox. | required |
timeout | Timeout |
The maximum time to wait for the input checkbox to be set. Defaults to None . |
None |