playwright.controller.InputDarkMode

playwright.controller.InputDarkMode(self, 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

timeout: Timeout = None

The maximum time to wait for the input dark mode to be clicked. Defaults to 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

value: str

The expected value of the attribute attribute.

timeout: Timeout = None

The maximum time to wait for the expectation to be fulfilled. Defaults to 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

value: str

The expected value of the mode attribute.

timeout: Timeout = None

The maximum time to wait for the expectation to be fulfilled. Defaults to None.

expect_page_mode

playwright.controller.InputDarkMode.expect_page_mode(value, *, timeout=None)

Expect the page to have a specific dark mode value.

Parameters

value: str

The expected value of the page’s dark mode.

timeout: Timeout = None

The maximum time to wait for the expectation to be fulfilled. Defaults to None.