Download File Dialog

前端 未结 2 2384
生来不讨喜
生来不讨喜 2021-02-20 18:39

I\'m using Selenium with my CI system to automatically test my various applications, one of which is a web form with a downloadable copy of our answers (as a dynamically generat

2条回答
  •  日久生厌
    2021-02-20 19:21

    As far as I know you can't use selenium for that, for the reasons you stated yourself. However, I think the best way to approach this is to download the generated pdf directly without selenium. Since you know its url, you can maybe use the approach outlined in this article. It describes the use of "Powder-Monkey" to do exactly what you want to do.

提交回复
热议问题