playwright.controller.InputDateRange

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

Controller for shiny.express.ui.input_date_range.

Attributes

Name Description
date_end The end date input element.
date_start The start date input element.
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_end Playwright Locator of the end date input element.
loc_label Playwright Locator for the label of the UI element.
loc_separator Playwright Locator of the separator between the two input elements.
loc_start Playwright Locator of the start date input element.
page Playwright Page of the Shiny app.

Methods

Name Description
expect_autoclose Asserts that the input element has the expected autoclose value.
expect_format Asserts that the input element has the expected format.
expect_label Expect the label of the input to have a specific text.
expect_language Asserts that the input element has the expected language.
expect_max_date Asserts that the input element has the expected maximum date.
expect_min_date Asserts that the input element has the expected minimum date.
expect_separator Asserts that the input element has the expected separator.
expect_startview Asserts that the input element has the expected start view.
expect_value Asserts that the input element has the expected value.
expect_weekstart Asserts that the input element has the expected week start.
expect_width Expect the width attribute of a input’s container to have a specific value.
set Sets the value of the input element.

expect_autoclose

playwright.controller.InputDateRange.expect_autoclose(value, *, timeout=None)

Asserts that the input element has the expected autoclose value.

Parameters

value: Literal[‘true’, ‘false’]

The expected autoclose value.

timeout: Timeout = None

The maximum time to wait for the value to appear. Defaults to None.

expect_format

playwright.controller.InputDateRange.expect_format(value, *, timeout=None)

Asserts that the input element has the expected format.

Parameters

value: AttrValue

The expected format.

timeout: Timeout = None

The maximum time to wait for the format to appear. Defaults to None.

expect_label

playwright.controller.InputDateRange.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_language

playwright.controller.InputDateRange.expect_language(value, *, timeout=None)

Asserts that the input element has the expected language.

Parameters

value: AttrValue

The expected language.

timeout: Timeout = None

The maximum time to wait for the language to appear. Defaults to None.

expect_max_date

playwright.controller.InputDateRange.expect_max_date(value, *, timeout=None)

Asserts that the input element has the expected maximum date.

Parameters

value: AttrValue

The expected maximum date.

timeout: Timeout = None

The maximum time to wait for the maximum date to appear. Defaults to None.

expect_min_date

playwright.controller.InputDateRange.expect_min_date(value, *, timeout=None)

Asserts that the input element has the expected minimum date.

Parameters

value: AttrValue

The expected minimum date.

timeout: Timeout = None

The maximum time to wait for the minimum date to appear. Defaults to None.

expect_separator

playwright.controller.InputDateRange.expect_separator(value, *, timeout=None)

Asserts that the input element has the expected separator.

Parameters

value: PatternOrStr

The expected separator.

timeout: Timeout = None

The maximum time to wait for the separator to appear. Defaults to None.

expect_startview

playwright.controller.InputDateRange.expect_startview(value, *, timeout=None)

Asserts that the input element has the expected start view.

Parameters

value: AttrValue

The expected start view.

timeout: Timeout = None

The maximum time to wait for the start view to appear. Defaults to None.

expect_value

playwright.controller.InputDateRange.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. The first element is the start date and the second element is the end date.

timeout: Timeout = None

The maximum time to wait for the value to appear. Defaults to None.

expect_weekstart

playwright.controller.InputDateRange.expect_weekstart(value, *, timeout=None)

Asserts that the input element has the expected week start.

Parameters

value: int | AttrValue

The expected week start.

timeout: Timeout = None

The maximum time to wait for the week start to appear. Defaults to None.

expect_width

playwright.controller.InputDateRange.expect_width(value, *, timeout=None)

Expect the width attribute of a input's container 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.InputDateRange.set(value, *, timeout=None)

Sets the value of the input element.

Parameters

value: typing.Tuple[str | None, str | None]

The value to set. The first element is the start date and the second element is the end date.

timeout: Timeout = None

The maximum time to wait for the value to be set. Defaults to None.