playwright.controller.DownloadButton

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

Controller for shiny.express.ui.download_button

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 action.
expect_label Expect the label of the input button to have a specific value.
expect_width Expect the width attribute of a DOM element to have a specific value.

click

playwright.controller.DownloadButton.click(timeout=None, **kwargs)

Clicks the input action.

Parameters

timeout: Timeout = None

The maximum time to wait for the input action to be clicked. Defaults to None.

expect_label

playwright.controller.DownloadButton.expect_label(value, *, timeout=None)

Expect the label of the input button to have a specific value.

Note: This must include the icon if it is present!

Parameters

value: PatternOrStr

The expected value of the label.

timeout: Timeout = None

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

expect_width

playwright.controller.DownloadButton.expect_width(value, *, timeout=None)

Expect the width attribute of a DOM element 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.