Need a Help to save a file

Hi!

I’m trying to write a ruby script that tests a “print to pdf”
functionality…so, I have a list on my screen, and by pressing the
Print button, a PDF is generated…a file download window
appears…could I click Save on that window from Ruby?
It has 3 options:

  1. Open
  2. Save
  3. Cancel

Thanks.