playwright.controller.InputCheckboxGroup

playwright.controller.InputCheckboxGroup(self, page, id)

Controller for shiny.express.ui.input_checkbox_group.

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_choice_labels Expect the labels of the choices.
expect_choices Expect the checkbox choices.
expect_inline Expect the input to be inline.
expect_label Expect the label of the input to have a specific text.
expect_selected Expect the selected checkboxes.
expect_width Expect the width attribute of a input’s container to have a specific value.
set Set the selected checkboxes.

expect_choice_labels

playwright.controller.InputCheckboxGroup.expect_choice_labels(value, *, timeout=None)

Expect the labels of the choices.

Parameters

value: ListPatternOrStr

The expected labels.

timeout: Timeout = None

The timeout for the expectation. Defaults to None.

expect_choices

playwright.controller.InputCheckboxGroup.expect_choices(value, *, timeout=None)

Expect the checkbox choices.

Parameters

value: ListPatternOrStr

The expected choices.

timeout: Timeout = None

The timeout for the expectation. Defaults to None.

expect_inline

playwright.controller.InputCheckboxGroup.expect_inline(value, *, timeout=None)

Expect the input to be inline.

Parameters

value: bool

Whether the input is inline.

timeout: Timeout = None

The timeout for the expectation. Defaults to None.

expect_label

playwright.controller.InputCheckboxGroup.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_selected

playwright.controller.InputCheckboxGroup.expect_selected(value, *, timeout=None)

Expect the selected checkboxes.

Parameters

value: ListPatternOrStr

The expected values of the selected checkboxes.

timeout: Timeout = None

The timeout for the expectation. Defaults to None.

expect_width

playwright.controller.InputCheckboxGroup.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.InputCheckboxGroup.set(selected, *, timeout=None, **kwargs)

Set the selected checkboxes.

Parameters

selected: ListOrTuple[str]

The values of the selected checkboxes.

timeout: Timeout = None

The timeout for the action. Defaults to None.