Saving a File Using WWW :: Selenium

I am trying to download a file from perl WWW :: Selenium. I get a popup asking if I want to save / open the file. I want to manipulate it and say "save" in a specific place. I do not know how to do this. Please, help.

PS: I could not use WWW :: Mechanize for this page, and I need to use Selenium

Thank you so much!

+3
source share
2 answers

Selenium cannot handle the save field, but a third-party utility, AutoIt , can. What we do is that our test code uses selenium commands to click the download link, and then execute the compiled AutoIt script file to save the file to disk.

+1
source

I understand that with selenium 1.x this is impossible to do and remains to be implemented in selenium 2.

Cm,

http://www.jsystemtest.org/?q=node/70

and

http://wiki.openqa.org/display/SEL/Selenium+Core+FAQ#SeleniumCoreFAQ-Ican%27tinteractwithapopupupdialog.Myteststopsinitstracks%21

0
source

Source: https://habr.com/ru/post/1754264/


All Articles