Search code examples
javaimagehtmlunit

Does HtmlUnit load images when it browses page?


as above. Does it load images?


Solution

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