When I press the button "Export 1 element" to download a file

Press a button of the page that downloads a file ("Export 1 element" of the view mode's inspect): the file is kept for webship-js's download steps.

Examples

When I press the button "Export 1 element" to download a file
When we press the button "Export 1 element" to download a file
And I press the button "Export 1 element" to download a file
When I press the button "Export 2 elements" to download a file
When I press the button "Export 1 element" to download a file

Pattern

When(/^(?:I|we) press the button "([^"]*)" to download a file$/, …)

Part of @webship-js/penpot-steps (github.com/webship/penpot-steps), a step pack for Webship-js 2.0.x.