I'm testing a web app with Selenium and I actually need to download a txt file during my test. But this seems impossible because a pop up appears asking to save the file. So, this blocks the progess of the test. Some have advised me to use Wget, but I don't know how to use this tool. Could you give me some help please ? Thanks Best regards !
WGet is a command-line tool used to download files. Here's a good tutorial on how it works; you'll need to call out to the command line from inside your test and execute wGet, then check the file it downloaded. How you do this differs depending on your setup (Java vs C#, Windows vs Linux, et cetera).
Basically you want to execute the command
You could also do two commands: