Handle download dialog box in SlimerJS

前端 未结 3 1508
轻奢々
轻奢々 2021-01-21 06:24

I have written a script that clicks on a link which can download a mp3 file. The problem I am facing is when the script simulates the click on that link, a download dialog box p

3条回答
  •  广开言路
    2021-01-21 07:03

    Firefox generates a temp "downloadfile.extension.part" file which contains the content. Just simply rename the file ex. myfile.csv.part > myfile.csv

    locally if working on a mac you should find the .part file in the downloads directory, on linux /temp/ folder

    Not the most elegant solution but should do the trick

提交回复
热议问题