playwright.controller.InputDate
self, page, id) playwright.controller.InputDate(
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
*, timeout=None) playwright.controller.InputDate.expect_autoclose(value,
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
*, timeout=None) playwright.controller.InputDate.expect_datesdisabled(value,
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,*,
=None,
timeout )
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
*, timeout=None) playwright.controller.InputDate.expect_format(value,
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
*, timeout=None) playwright.controller.InputDate.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.InputDate.expect_language(value,
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
*, timeout=None) playwright.controller.InputDate.expect_max_date(value,
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
*, timeout=None) playwright.controller.InputDate.expect_min_date(value,
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
*, timeout=None) playwright.controller.InputDate.expect_startview(value,
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
*, timeout=None) playwright.controller.InputDate.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_weekstart
*, timeout=None) playwright.controller.InputDate.expect_weekstart(value,
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
*, timeout=None) playwright.controller.InputDate.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.InputDate.
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 |