playwright.controller.InputSlider

playwright.controller.InputSlider(self, page, id)

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

playwright.controller.InputSlider.click_pause(timeout=None)

Click the pause button.

Parameters

Name Type Description Default
timeout Timeout The timeout for the action. Defaults to None. None

click_play

playwright.controller.InputSlider.click_play(timeout=None)

Click the play button.

Parameters

Name Type Description Default
timeout Timeout The timeout for the action. Defaults to None. None

expect_animate

playwright.controller.InputSlider.expect_animate(exists, *, timeout=None)

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

playwright.controller.InputSlider.expect_drag_range(value, *, timeout=None)

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

playwright.controller.InputSlider.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.InputSlider.expect_max(value, *, timeout=None)

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

playwright.controller.InputSlider.expect_min(value, *, timeout=None)

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

playwright.controller.InputSlider.expect_post(value, *, timeout=None)

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

playwright.controller.InputSlider.expect_pre(value, *, timeout=None)

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

playwright.controller.InputSlider.expect_sep(value, *, timeout=None)

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

playwright.controller.InputSlider.expect_step(value, *, timeout=None)

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

playwright.controller.InputSlider.expect_tick_labels(value, *, timeout=None)

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

playwright.controller.InputSlider.expect_ticks(value, *, timeout=None)

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

playwright.controller.InputSlider.expect_time_format(value, *, timeout=None)

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

playwright.controller.InputSlider.expect_timezone(value, *, timeout=None)

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

playwright.controller.InputSlider.expect_value(value, *, timeout=None)

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

playwright.controller.InputSlider.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.InputSlider.set(value, *, max_err_values=15, timeout=None)

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