playwright.controller.InputNumeric
playwright.controller.InputNumeric(page, id)Controller for shiny.express.ui.input_numeric.
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_label | Expect the label of the input to have a specific text. |
| expect_max | Expect the maximum numeric value to be a specific value. |
| expect_min | Expect the minimum numeric value to be a specific value. |
| expect_step | Expect step value when incrementing/decrementing the numeric input. |
| expect_value | Expect the value of the text input to have a specific value. |
| expect_width | Expect the input element to have a specific width. |
| set | Sets the text value |
expect_label
playwright.controller.InputNumeric.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_max
playwright.controller.InputNumeric.expect_max(value, *, timeout=None)Expect the maximum numeric value to be a specific value.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| value | AttrValue |
The expected maximum numeric value. | required |
| timeout | Timeout |
The maximum time to wait for the expectation to be fulfilled. Defaults to None. |
None |
expect_min
playwright.controller.InputNumeric.expect_min(value, *, timeout=None)Expect the minimum numeric value to be a specific value.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| value | AttrValue |
The expected minimum numeric value. | required |
| timeout | Timeout |
The maximum time to wait for the expectation to be fulfilled. Defaults to None. |
None |
expect_step
playwright.controller.InputNumeric.expect_step(value, *, timeout=None)Expect step value when incrementing/decrementing the numeric input.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| value | AttrValue |
The expected step value for the numeric input. | required |
| timeout | Timeout |
The maximum time to wait for the expectation to be fulfilled. Defaults to None. |
None |
expect_value
playwright.controller.InputNumeric.expect_value(value, *, timeout=None)Expect the value of the text input to have a specific value.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| value | PatternOrStr |
The expected value of the text input. | required |
| timeout | Timeout |
The maximum time to wait for the expectation to be fulfilled. Defaults to None. |
None |
expect_width
playwright.controller.InputNumeric.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.InputNumeric.set(value, *, timeout=None)Sets the text value
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| value | str | The text to set. | required |
| timeout | Timeout |
The maximum time to wait for the text to be set. Defaults to None. |
None |