playwright.controller.InputDate

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

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_autoclose Asserts that the input element has the expected data-date-autoclose attribute value.
expect_datesdisabled Asserts that the input element has the expected data-date-dates-disabled attribute value.
expect_daysofweekdisabled Asserts that the input element has the expected data-date-days-of-week-disabled attribute value.
expect_format Asserts that the input element has the expected data-date-format attribute value.
expect_label Expect the label of the input to have a specific text.
expect_language Asserts that the input element has the expected data-date-language attribute value.
expect_max_date Asserts that the input element has the expected data-max-date attribute value.
expect_min_date Asserts that the input element has the expected data-min-date attribute value.
expect_startview Asserts that the input element has the expected data-date-start-view attribute value.
expect_value Asserts that the input element has the expected value.
expect_weekstart Asserts that the input element has the expected data-date-week-start attribute value.
expect_width Expect the input element to have a specific width.
set Sets the text value

expect_autoclose

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

Asserts that the input element has the expected data-date-autoclose attribute value.

Parameters

Name Type Description Default
value Literal[‘true’, ‘false’] The expected data-date-autoclose attribute value. required
timeout Timeout The maximum time to wait for the value to appear. Defaults to None. None

expect_datesdisabled

playwright.controller.InputDate.expect_datesdisabled(value, *, timeout=None)

Asserts that the input element has the expected data-date-dates-disabled attribute value.

Parameters

Name Type Description Default
value list[str] | None The expected data-date-dates-disabled attribute value. required
timeout Timeout The maximum time to wait for the value to appear. Defaults to None. None

expect_daysofweekdisabled

playwright.controller.InputDate.expect_daysofweekdisabled(
    value,
    *,
    timeout=None,
)

Asserts that the input element has the expected data-date-days-of-week-disabled attribute value.

Parameters

Name Type Description Default
value list[int] | None The expected data-date-days-of-week-disabled attribute value. required
timeout Timeout The maximum time to wait for the value to appear. Defaults to None. None

expect_format

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

Asserts that the input element has the expected data-date-format attribute value.

Parameters

Name Type Description Default
value AttrValue The expected data-date-format attribute value. required
timeout Timeout The maximum time to wait for the value to appear. Defaults to None. None

expect_label

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

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

Asserts that the input element has the expected data-date-language attribute value.

Parameters

Name Type Description Default
value AttrValue The expected data-date-language attribute value. required
timeout Timeout The maximum time to wait for the value to appear. Defaults to None. None

expect_max_date

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

Asserts that the input element has the expected data-max-date attribute value.

Parameters

Name Type Description Default
value AttrValue The expected data-max-date attribute value. required
timeout Timeout The maximum time to wait for the value to appear. Defaults to None. None

expect_min_date

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

Asserts that the input element has the expected data-min-date attribute value.

Parameters

Name Type Description Default
value AttrValue The expected data-min-date attribute value. required
timeout Timeout The maximum time to wait for the value to appear. Defaults to None. None

expect_startview

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

Asserts that the input element has the expected data-date-start-view attribute value.

Parameters

Name Type Description Default
value AttrValue The expected data-date-start-view attribute value. required
timeout Timeout The maximum time to wait for the value to appear. Defaults to None. None

expect_value

playwright.controller.InputDate.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_weekstart

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

Asserts that the input element has the expected data-date-week-start attribute value.

Parameters

Name Type Description Default
value int | AttrValue The expected data-date-week-start attribute value. required
timeout Timeout The maximum time to wait for the value to appear. Defaults to None. None

expect_width

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

Sets the text value

Parameters

Name Type Description Default
value str The text to set. required
timeout Timeout The maximum time to wait for the text to be set. Defaults to None. None