playwright.controller.InputNumeric
self, page, id) playwright.controller.InputNumeric(
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
*, timeout=None) playwright.controller.InputNumeric.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_max
*, timeout=None) playwright.controller.InputNumeric.expect_max(value,
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
*, timeout=None) playwright.controller.InputNumeric.expect_min(value,
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
*, timeout=None) playwright.controller.InputNumeric.expect_step(value,
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
*, timeout=None) playwright.controller.InputNumeric.expect_value(value,
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
*, timeout=None) playwright.controller.InputNumeric.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) playwright.controller.InputNumeric.
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 |