Does HtmlUnit load images when it browses page?

后端 未结 1 1259
伪装坚强ぢ
伪装坚强ぢ 2021-02-13 21:13

as above. Does it load images?

相关标签:
1条回答
  • 2021-02-13 21:49

    By default: no.

    1. You have to use htmlImage.getImageReader()
    2. Or, you can use htmlPage.save()

    Update: as of 2.25, you can use:

    webClient.getOptions().setDownloadImages(true);
    
    0 讨论(0)
提交回复
热议问题