Hi @Rishik_Chowdary you can check the downloaded location whether the file downloaded or not using Path exists . eg : system.Environment.currentdirectory+“\Downloads\ExcelName.xlsx” . if you need to get the latest file
str_filepath = Directory.GetFiles(yourfolder_path,“*.txt”).OrderByDescending(Function(d) New FileInfo(d).CreationTime).Tolist(0)
Hi @Rishik_Chowdary , From what you wrote, I guess that once you download, it gets downloaded automatically to the default download folder right?
If that’s the case, I’d try enabling the “Ask before download” setting in Chrome (if you’re using chrome) so that you get the Save As popup, and from there either rename the file to what you need, or use Get Text, to scrape the original name given by the website.
Above Linq Query can bring the newly-downloaded file. and as @ignasi.peiris suggested you can save the file into particular location with the type into the name with location