playwright.controller.InputDarkMode
self, page, id) playwright.controller.InputDarkMode(
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
=None) playwright.controller.InputDarkMode.click(timeout
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
*, timeout=None) playwright.controller.InputDarkMode.expect_attribute(value,
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
*, timeout=None) playwright.controller.InputDarkMode.expect_mode(value,
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
*, timeout=None) playwright.controller.InputDarkMode.expect_page_mode(value,
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 |