save an image with selenium & firefox

后端 未结 5 1996
灰色年华
灰色年华 2021-02-08 19:58

i\'m trying to save an image from a website using selenium server & python client. i know the image\'s URL, but i can\'t find the code to save it, either when it\'s the the

5条回答
  •  盖世英雄少女心
    2021-02-08 20:50

    To do this the way you want (to actually capture the content sent down to the browser) you'd need to modify Selenium RC's proxy code (see ProxyHandler.java) and store the files locally on the disk in parallel to sending the response back to the browser.

提交回复
热议问题