playwright.controller.InputNumeric
playwright.controller.InputNumeric(self, 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 width attribute of a DOM element to have a specific value. |
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
value:
PatternOrStr
-
The expected text value of the label.
timeout:
Timeout
= None-
The maximum time to wait for the expectation to be fulfilled. Defaults to
None
.
expect_max
playwright.controller.InputNumeric.expect_max(value, *, timeout=None)
Expect the maximum numeric value to be a specific value.
Parameters
value:
AttrValue
-
The expected maximum numeric value.
timeout:
Timeout
= None-
The maximum time to wait for the expectation to be fulfilled. Defaults to
None
.
expect_min
playwright.controller.InputNumeric.expect_min(value, *, timeout=None)
Expect the minimum numeric value to be a specific value.
Parameters
value:
AttrValue
-
The expected minimum numeric value.
timeout:
Timeout
= None-
The maximum time to wait for the expectation to be fulfilled. Defaults to
None
.
expect_step
playwright.controller.InputNumeric.expect_step(value, *, timeout=None)
Expect step value when incrementing/decrementing the numeric input.
Parameters
value:
AttrValue
-
The expected step value for the numeric input.
timeout:
Timeout
= None-
The maximum time to wait for the expectation to be fulfilled. Defaults to
None
.
expect_value
playwright.controller.InputNumeric.expect_value(value, *, timeout=None)
Expect the value of the text input to have a specific value.
Parameters
value:
PatternOrStr
-
The expected value of the text input.
timeout:
Timeout
= None-
The maximum time to wait for the expectation to be fulfilled. Defaults to
None
.
expect_width
playwright.controller.InputNumeric.expect_width(value, *, timeout=None)
Expect the width
attribute of a DOM element to have a specific value.
Parameters
value:
AttrValue
-
The expected value of the
width
attribute. timeout:
Timeout
= None-
The maximum time to wait for the expectation to be fulfilled. Defaults to
None
.
set
playwright.controller.InputNumeric.set(value, *, timeout=None)
Sets the text value
Parameters
value: str
-
The text to set.
timeout:
Timeout
= None-
The maximum time to wait for the text to be set. Defaults to
None
.