API …
Web elements

File upload & download

Single and multiple upload with type/size validation, a drop zone, real server upload and genuine file downloads.

Practice tasks

  • Upload a .png with setInputFiles and assert it appears in the list.
  • Upload a file over 1 MB and assert the error.
  • Upload a .exe and assert it is rejected.
  • Click each download link and assert the downloaded file name and contents.
  • Send the files to the server and assert the 201 response.
  • After clicking Upload to server, assert the upload-success confirmation and the uploaded-item entries.

More Web elements practice