I need to download a file (the url is a mp3 file) using selenium webdriver, using chrome. When I get that URL, the mp3 starts playing without downloading, is there any way to download? I need to download it through a proxy
Asked
Active
Viewed 340 times
3
-
Is download option available on the UI? – Chandra Shekhar Mar 21 '20 at 08:58
-
Can you please share URL? – Mitul Lakhani Mar 22 '20 at 04:38
-
its simmilar to https://mcdn.podbean.com/mf/web/jy5aa3/SIPS2066_WoodfordBarrel_NOADS.mp3 – Achintha Mar 22 '20 at 04:51
1 Answers
0
It could have been more helpful if you had provided the url. I believe it would be something like: https://www.website.com/records/filename.mp3
Remove the file name and reach the url: https://www.website.com/records/
Now there should be a webelement upon clicking which downloads the mp3. So you could perform a click action there.
Edit: In the URL, which leads directly to playing mp3 file, there should be a context click(right click) option from where you can save the file. You could automate the same in Selenium using 'Actions' class, move arrow down and click on the option to save it.

ashwinin
- 81
- 5
-
added the required edits since you said url with mp3 play is the only option. – ashwinin Mar 21 '20 at 14:27