playwright.controller.InputSliderRange
playwright.controller.InputSliderRange(self, page, id)
Controller for shiny.express.ui.input_slider
with a slider range.
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_irs | Playwright Locator of the input slider. |
loc_irs_label_from | Playwright Locator of the input slider label for the from handle. |
loc_irs_label_to | Playwright Locator of the input slider label for the to handle. |
loc_irs_ticks | Playwright Locator of the input slider ticks. |
loc_label | Playwright Locator for the label of the UI element. |
loc_play_pause | Playwright Locator of the play/pause button. |
page | Playwright Page of the Shiny app. |
Methods
Name | Description |
---|---|
click_pause | Click the pause button. |
click_play | Click the play button. |
expect_animate | Expect the animate button to exist. |
expect_drag_range | Asserts that the input element has the expected data-drag-range attribute value. |
expect_label | Expect the label of the input to have a specific text. |
expect_max | Expect the input element to have the expected max attribute value. |
expect_min | Expect the input element to have the expected min attribute value. |
expect_post | Expect the input element to have the expected data-post attribute value. |
expect_pre | Expect the input element to have the expected data-pre attribute value. |
expect_sep | Expect the input element to have the expected data-sep attribute value. |
expect_step | Expect the input element to have the expected step attribute value. |
expect_tick_labels | Expect the tick labels of the input slider. |
expect_ticks | Expect the input element to have the expected data-ticks attribute value. |
expect_time_format | Asserts that the input element has the expected data-time-format attribute value. |
expect_timezone | Asserts that the input element has the expected data-timezone attribute value. |
expect_value | Asserts that the input element has the expected value. |
expect_width | Expect the width attribute of a DOM element to have a specific value. |
set | Set the value of the slider. |
click_pause
playwright.controller.InputSliderRange.click_pause(timeout=None)
Click the pause button.
Parameters
timeout:
Timeout
= None-
The timeout for the action. Defaults to
None
.
click_play
playwright.controller.InputSliderRange.click_play(timeout=None)
Click the play button.
Parameters
timeout:
Timeout
= None-
The timeout for the action. Defaults to
None
.
expect_animate
playwright.controller.InputSliderRange.expect_animate(exists, *, timeout=None)
Expect the animate button to exist.
Parameters
exists: bool
-
Whether the animate button should exist.
timeout:
Timeout
= None-
The timeout for the expectation. Defaults to
None
.
expect_drag_range
playwright.controller.InputSliderRange.expect_drag_range(value, *, timeout=None)
Asserts that the input element has the expected data-drag-range
attribute value.
Parameters
value:
AttrValue
-
The expected value.
timeout:
Timeout
= None-
The maximum time to wait for the value to appear. Defaults to
None
.
expect_label
playwright.controller.InputSliderRange.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.InputSliderRange.expect_max(value, *, timeout=None)
Expect the input element to have the expected max
attribute value.
Parameters
value:
AttrValue
-
The expected value.
timeout:
Timeout
= None-
The timeout for the expectation. Defaults to
None
.
expect_min
playwright.controller.InputSliderRange.expect_min(value, *, timeout=None)
Expect the input element to have the expected min
attribute value.
Parameters
value:
AttrValue
-
The expected value.
timeout:
Timeout
= None-
The timeout for the expectation. Defaults to
None
.
expect_post
playwright.controller.InputSliderRange.expect_post(value, *, timeout=None)
Expect the input element to have the expected data-post
attribute value.
Parameters
value:
AttrValue
-
The expected value.
timeout:
Timeout
= None-
The timeout for the expectation. Defaults to
None
.
expect_pre
playwright.controller.InputSliderRange.expect_pre(value, *, timeout=None)
Expect the input element to have the expected data-pre
attribute value.
Parameters
value:
AttrValue
-
The expected value.
timeout:
Timeout
= None-
The timeout for the expectation. Defaults to
None
.
expect_sep
playwright.controller.InputSliderRange.expect_sep(value, *, timeout=None)
Expect the input element to have the expected data-sep
attribute value.
Parameters
value:
AttrValue
-
The expected value.
timeout:
Timeout
= None-
The timeout for the expectation. Defaults to
None
.
expect_step
playwright.controller.InputSliderRange.expect_step(value, *, timeout=None)
Expect the input element to have the expected step
attribute value.
Parameters
value:
AttrValue
-
The expected value.
timeout:
Timeout
= None-
The timeout for the expectation. Defaults to
None
.
expect_tick_labels
playwright.controller.InputSliderRange.expect_tick_labels(value, *, timeout=None)
Expect the tick labels of the input slider.
Parameters
value:
ListPatternOrStr
| None-
The expected tick labels.
timeout:
Timeout
= None-
The timeout for the expectation. Defaults to
None
.
expect_ticks
playwright.controller.InputSliderRange.expect_ticks(value, *, timeout=None)
Expect the input element to have the expected data-ticks
attribute value.
Parameters
value:
AttrValue
-
The expected value.
timeout:
Timeout
= None-
The timeout for the expectation. Defaults to
None
.
expect_time_format
playwright.controller.InputSliderRange.expect_time_format(value, *, timeout=None)
Asserts that the input element has the expected data-time-format
attribute value.
Parameters
value:
AttrValue
-
The expected value.
timeout:
Timeout
= None-
The maximum time to wait for the value to appear. Defaults to
None
.
expect_timezone
playwright.controller.InputSliderRange.expect_timezone(value, *, timeout=None)
Asserts that the input element has the expected data-timezone
attribute value.
Parameters
value:
AttrValue
-
The expected value.
timeout:
Timeout
= None-
The maximum time to wait for the value to appear. Defaults to
None
.
expect_value
playwright.controller.InputSliderRange.expect_value(value, *, timeout=None)
Asserts that the input element has the expected value.
Parameters
value: typing.Tuple[
PatternOrStr
,PatternOrStr
] | typing.Tuple[PatternOrStr
, MISSING_TYPE] | typing.Tuple[MISSING_TYPE,PatternOrStr
]-
The expected value.
timeout:
Timeout
= None-
The maximum time to wait for the value to appear. Defaults to
None
.
expect_width
playwright.controller.InputSliderRange.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.InputSliderRange.set(value, *, max_err_values=15, timeout=None)
Set the value of the slider.
Parameters
value: typing.Tuple[str, str] | typing.Tuple[str, MISSING_TYPE] | typing.Tuple[MISSING_TYPE, str]
-
The value to set the slider to.
max_err_values: int = 15
-
The maximum number of error values to display if the value is not found. Defaults to 15.
timeout:
Timeout
= None-
The maximum time to wait for the value to appear. Defaults to
None
.