Skip to main content
Resolves a local path, an HTTPS URL, or an env variable holding a previously downloaded path, then primes Playwright’s chooser so the next click that triggers a file dialog uploads the file.

Parameters

ParameterTypeRequiredDescription
pathstringYesLocal path or HTTPS URL of the file.
namestringNoOverride the filename presented to the form.
saveAsstringNoName of the variable to write this step’s return value to.
retriesnumberNoNumber of times to retry the step on failure before failing the test.
skippedbooleanNoSkip this step at execution time.

Shorthand

Local path or URL as a single string.
- fileUpload: momentic.config.yaml

Examples

- fileUpload: "{{ env.DOWNLOADED_FILE.downloadedFile }}"
- fileUpload: momentic.config.yaml
- fileUpload: https://static.wikia.nocookie.net/fridaynightfunking/images/b/b5/ASDFGuyIdle.gif