These are chat archives for rosshinkley/nightmare

3rd
Jan 2018
Tiago
@tpsvr_twitter
Jan 03 2018 10:57
Hei!
Please, I have one last problem.
The PDF that I need to download is being opened in another window that prompts me to tell where to save.
How can I automate this?
Davide De Gennaro
@dege88
Jan 03 2018 13:11
@tpsvr_twitter can you get the url of the file to download directly?
Tiago
@tpsvr_twitter
Jan 03 2018 13:13
@dege88 , no! The link ends with GetPDF.aspx and if I try to open the same link in another window I already get a session error.
I tried to add electron-pdf-window in electron, but i get the session error to
Now, I'm searching to enable support for non-electronic plugins to see if it works. Because the pdf is available for viewing.
Davide De Gennaro
@dege88
Jan 03 2018 13:42
@tpsvr_twitter this plugin should do what you need: https://github.com/rosshinkley/nightmare-download-manager
Tiago
@tpsvr_twitter
Jan 03 2018 13:44
I tried this and nightmare-inline-download, but neither of them supressed the dialog asking for the file name to save and downloaded.
Davide De Gennaro
@dege88
Jan 03 2018 13:47
@tpsvr_twitter have you tried with the suggestion of https://stackoverflow.com/questions/27109563/download-a-file-using-nightmare ?
also, have you tried to execute nightmare without the graphic debug active?
Tiago
@tpsvr_twitter
Jan 03 2018 13:55
@dege88 These examples I tried but did not work.
With show: false I tried it now and it did not work.
thanks