playwright.controller.InputDarkMode
playwright.controller.InputDarkMode(page, id)Controller for shiny.express.ui.input_dark_mode.
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. |
| page | Playwright Page of the Shiny app. |
Methods
| Name | Description |
|---|---|
| click | Clicks the input dark mode. |
| expect_attribute | Expect the attribute named attribute of the input dark mode to have a specific value. |
| expect_mode | Expect the mode attribute of the input dark mode to have a specific value. |
| expect_page_mode | Expect the page to have a specific dark mode value. |
click
playwright.controller.InputDarkMode.click(timeout=None)Clicks the input dark mode.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| timeout | Timeout |
The maximum time to wait for the input dark mode to be clicked. Defaults to None. |
None |
expect_attribute
playwright.controller.InputDarkMode.expect_attribute(value, *, timeout=None)Expect the attribute named attribute of the input dark mode to have a specific value.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| value | str | The expected value of the attribute attribute. |
required |
| timeout | Timeout |
The maximum time to wait for the expectation to be fulfilled. Defaults to None. |
None |
expect_mode
playwright.controller.InputDarkMode.expect_mode(value, *, timeout=None)Expect the mode attribute of the input dark mode to have a specific value.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| value | str | The expected value of the mode attribute. |
required |
| timeout | Timeout |
The maximum time to wait for the expectation to be fulfilled. Defaults to None. |
None |
expect_page_mode
playwright.controller.InputDarkMode.expect_page_mode(value, *, timeout=None)Expect the page to have a specific dark mode value.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| value | str | The expected value of the page’s dark mode. | required |
| timeout | Timeout |
The maximum time to wait for the expectation to be fulfilled. Defaults to None. |
None |