Does HtmlUnit load images when it browses page?

左心房为你撑大大i 提交于 2019-12-04 17:16:47

问题


as above. Does it load images?


回答1:


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);


来源:https://stackoverflow.com/questions/3425697/does-htmlunit-load-images-when-it-browses-page

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!