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