playwright.controller.InputDateRange
self, page, id) playwright.controller.InputDateRange(
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 input element to have a specific width. |
set | Sets the value of the input element. |
expect_autoclose
*, timeout=None) playwright.controller.InputDateRange.expect_autoclose(value,
Asserts that the input element has the expected autoclose value.
Parameters
Name | Type | Description | Default |
---|---|---|---|
value | Literal[‘true’, ‘false’] | The expected autoclose value. | required |
timeout | Timeout |
The maximum time to wait for the value to appear. Defaults to None . |
None |
expect_format
*, timeout=None) playwright.controller.InputDateRange.expect_format(value,
Asserts that the input element has the expected format.
Parameters
Name | Type | Description | Default |
---|---|---|---|
value | AttrValue |
The expected format. | required |
timeout | Timeout |
The maximum time to wait for the format to appear. Defaults to None . |
None |
expect_label
*, timeout=None) playwright.controller.InputDateRange.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_language
*, timeout=None) playwright.controller.InputDateRange.expect_language(value,
Asserts that the input element has the expected language.
Parameters
Name | Type | Description | Default |
---|---|---|---|
value | AttrValue |
The expected language. | required |
timeout | Timeout |
The maximum time to wait for the language to appear. Defaults to None . |
None |
expect_max_date
*, timeout=None) playwright.controller.InputDateRange.expect_max_date(value,
Asserts that the input element has the expected maximum date.
Parameters
Name | Type | Description | Default |
---|---|---|---|
value | AttrValue |
The expected maximum date. | required |
timeout | Timeout |
The maximum time to wait for the maximum date to appear. Defaults to None . |
None |
expect_min_date
*, timeout=None) playwright.controller.InputDateRange.expect_min_date(value,
Asserts that the input element has the expected minimum date.
Parameters
Name | Type | Description | Default |
---|---|---|---|
value | AttrValue |
The expected minimum date. | required |
timeout | Timeout |
The maximum time to wait for the minimum date to appear. Defaults to None . |
None |
expect_separator
*, timeout=None) playwright.controller.InputDateRange.expect_separator(value,
Asserts that the input element has the expected separator.
Parameters
Name | Type | Description | Default |
---|---|---|---|
value | PatternOrStr |
The expected separator. | required |
timeout | Timeout |
The maximum time to wait for the separator to appear. Defaults to None . |
None |
expect_startview
*, timeout=None) playwright.controller.InputDateRange.expect_startview(value,
Asserts that the input element has the expected start view.
Parameters
Name | Type | Description | Default |
---|---|---|---|
value | AttrValue |
The expected start view. | required |
timeout | Timeout |
The maximum time to wait for the start view to appear. Defaults to None . |
None |
expect_value
*, timeout=None) playwright.controller.InputDateRange.expect_value(value,
Asserts that the input element has the expected value.
Parameters
Name | Type | Description | Default |
---|---|---|---|
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. | required |
timeout | Timeout |
The maximum time to wait for the value to appear. Defaults to None . |
None |
expect_weekstart
*, timeout=None) playwright.controller.InputDateRange.expect_weekstart(value,
Asserts that the input element has the expected week start.
Parameters
Name | Type | Description | Default |
---|---|---|---|
value | int | AttrValue |
The expected week start. | required |
timeout | Timeout |
The maximum time to wait for the week start to appear. Defaults to None . |
None |
expect_width
*, timeout=None) playwright.controller.InputDateRange.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, *, timeout=None) playwright.controller.InputDateRange.
Sets the value of the input element.
Parameters
Name | Type | Description | Default |
---|---|---|---|
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. | required |
timeout | Timeout |
The maximum time to wait for the value to be set. Defaults to None . |
None |