Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does HtmlUnit load images when it browses page?

as above. Does it load images?

like image 819
oneat Avatar asked Aug 06 '10 16:08

oneat


1 Answers

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);
like image 175
Ahmed Ashour Avatar answered Nov 07 '22 14:11

Ahmed Ashour