When you record a browser test that uploads a file, clicking an upload control on the page now opens a mabl file picker instead of your operating system's dialog. From one place, you can set the file from your computer, a file your test downloaded in an earlier step, or a file already saved to your workspace. mabl records a step that makes the same choice every time the test runs.
The picker offers three sources:
- Computer: browse your local disk and upload the file to your workspace.
- Downloaded: reuse a file your test downloaded earlier in the same test. mabl tracks the download as a file variable, so replay picks up the right file even when its name changes between runs.
- Workspace: choose a file you have already saved to your workspace uploads.
The new file picker requires the latest version of the mabl Desktop App.
Try it out
- Open a browser test in the mabl Trainer and start recording.
- Click a file upload control on the page. The mabl file picker opens in place of your operating system's dialog.
- Choose a source -- computer, downloaded, or workspace -- and select your file.
- mabl sets the file on the page and records the step, so the upload runs the same way every time you replay the test.
To make a downloaded file easy to recognize in the picker, name it on the Download step using the new Save as file variable field. If you leave it blank, mabl names the file for you.