playwright.controller.DownloadLink
playwright.controller.DownloadLink(page, id)
Controller for shiny.express.ui.download_link.
Attributes
| 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
| click |
Clicks the input action. |
| expect_icon |
Expect the icon of the input button to have a specific value. |
| expect_label |
Expect the label of the input button to have a specific value. |
click
playwright.controller.DownloadLink.click(timeout=None, **kwargs)
Clicks the input action.
Parameters
| timeout |
Timeout |
The maximum time to wait for the input action to be clicked. Defaults to None. |
None |
expect_icon
playwright.controller.DownloadLink.expect_icon(value, *, timeout=None)
Expect the icon of the input button to have a specific value.
Parameters
| value |
PatternOrStr |
The expected value of the icon. |
required |
| timeout |
Timeout |
The maximum time to wait for the expectation to be fulfilled. Defaults to None. |
None |
expect_label
playwright.controller.DownloadLink.expect_label(value, *, timeout=None)
Expect the label of the input button to have a specific value.
Parameters
| value |
PatternOrStr |
The expected value of the label. |
required |
| timeout |
Timeout |
The maximum time to wait for the expectation to be fulfilled. Defaults to None. |
None |