79668898

Date: 2025-06-17 10:28:42
Score: 1
Natty:
Report link

Thanks for the feedback folks, it did help. Below is my working solution.

protected static async Task DownloadDocument(ILocator locator, string FileName)
{
    Console.WriteLine(GetTheCurrentMethod());
    var waitForDownloadTask = Page.WaitForDownloadAsync();
    await locator.ClickAsync();
    var download = await waitForDownloadTask;
    await download.SaveAsAsync($"{DownloadPath}\\{FileName}");
}
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Kev