microsoft / playwright-dotnet

.NET version of the Playwright testing and automation library.
https://playwright.dev/dotnet/
MIT License
2.47k stars 235 forks source link

[Question]: What is the method to fetch all the downloaded file names ? #1848

Closed vivekvasu closed 2 years ago

vivekvasu commented 2 years ago

Your question

I have a download icon which will download multiple files upon clicking. How can I fetch all the SuggestedFilename ? download.SuggestedFilename is returning only one name

mxschmitt commented 2 years ago

Multiple download events should then get emitted where you can call the suggested filename, see here: https://playwright.dev/dotnet/docs/api/class-download#download-suggested-filename

mxschmitt commented 2 years ago

Closing for now since it seems answered. Please file a new issue if you have further questions.