I have a code, where it downloads files from the browser (chrome or firefox), but when used headless browsers like htmlunitdriver or phantomjs, they are executing complete code but skipping downloading of files from the browser.
So would like to know will this downloading functionality is supported by htmlunitdriver and phantomjs?