How to download an image using Selenium (any version)?

前端 未结 13 1594
夕颜
夕颜 2020-11-29 04:11

I was wondering, how can one use selenium/webdriver to download an image for a page. Assuming that the user session is required to download the image hence having pure URL i

13条回答
  •  盖世英雄少女心
    2020-11-29 04:52

    use selenium for getting the image src

    elemImg.get_attribute('src')
    

    use the programming language for this, for python; check this answer: How to save an image locally using Python whose URL address I already know?

提交回复
热议问题