The logo for Shiny for Python Shiny for Python
  • Get Started
  • Concepts
  • Components
    • Components
    • Layouts
    • Templates
  • Gallery
  • Playground
  • Reference
    • Shiny Express
    • Shiny Core
    • Testing

On this page

  • playwright.controller.DownloadLink
    • Attributes
    • Methods
      • click
      • expect_label
  • Report an issue
  • Edit this page

playwright.controller.DownloadLink

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

Controller for shiny.express.ui.download_link.

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.

click

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

Clicks the input action.

Parameters

Name Type Description Default
timeout Timeout The maximum time to wait for the input action to be clicked. 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.

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

Parameters

Name Type Description Default
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

Proudly supported by Posit

 
  • Report an issue
  • Edit this page