Upload multiple files
Hard120 pts~45 min
- File upload
- Multiple files
Practice app · Document Vault
File upload and download, cookies, localStorage, sessionStorage and JavaScript execution.
Your starter code already declares TEST_URL — never hardcode a host.
Objective
Upload two files at once through the multiple file input.
Your task
- 1Create two temporary files: tqa-a.txt and tqa-b.txt.
- 2Send both absolute paths to #multi-upload in one sendKeys call, separated by a newline (\n).
- 3Click #upload-button.
- 4Assert #uploaded-files lists exactly two items: tqa-a.txt and tqa-b.txt.
Acceptance criteria
- Both files are listed in #uploaded-files
- Exactly two items are listed
- At least 1 assertion passes
Selenium WebDriver 4 · Selenium · Files, windows & storage