By default Playwright saves downloads with a unique filename, but you can get the original name using SuggestedFilename
from the Download API. After the download finishes, use download.PathAsync()
to get the temp path, then rename the file with File.Move()
to match the original filename.