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 width attribute of a input’s container to have a specific value. |
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
value: Literal[‘true’, ‘false’]
-
The expected
data-date-autoclose
attribute value. timeout:
Timeout
= None-
The maximum time to wait for the value to appear. Defaults to
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
value:
list
[str] | None-
The expected
data-date-dates-disabled
attribute value. timeout:
Timeout
= None-
The maximum time to wait for the value to appear. Defaults to
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
value:
list
[int] | None-
The expected
data-date-days-of-week-disabled
attribute value. timeout:
Timeout
= None-
The maximum time to wait for the value to appear. Defaults to
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
value:
AttrValue
-
The expected
data-date-format
attribute value. timeout:
Timeout
= None-
The maximum time to wait for the value to appear. Defaults to
None
.
expect_label
playwright.controller.InputDate.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.InputDate.expect_language(value, *, timeout=None)
Asserts that the input element has the expected data-date-language
attribute value.
Parameters
value:
AttrValue
-
The expected
data-date-language
attribute value. timeout:
Timeout
= None-
The maximum time to wait for the value to appear. Defaults to
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
value:
AttrValue
-
The expected
data-max-date
attribute value. timeout:
Timeout
= None-
The maximum time to wait for the value to appear. Defaults to
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
value:
AttrValue
-
The expected
data-min-date
attribute value. timeout:
Timeout
= None-
The maximum time to wait for the value to appear. Defaults to
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
value:
AttrValue
-
The expected
data-date-start-view
attribute value. timeout:
Timeout
= None-
The maximum time to wait for the value to appear. Defaults to
None
.
expect_value
playwright.controller.InputDate.expect_value(value, *, timeout=None)
Asserts that the input element has the expected value.
Parameters
value:
PatternOrStr
-
The expected value.
timeout:
Timeout
= None-
The maximum time to wait for the value to appear. Defaults to
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
value: int |
AttrValue
-
The expected
data-date-week-start
attribute value. timeout:
Timeout
= None-
The maximum time to wait for the value to appear. Defaults to
None
.
expect_width
playwright.controller.InputDate.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.InputDate.set(value, *, timeout=None)
Sets the text value
Parameters
value: str
-
The text to set.
timeout:
Timeout
= None-
The maximum time to wait for the text to be set. Defaults to
None
.