Chrome version : 58 OS : Ubuntu 16.04
I wanted to take screenshot after blocking ads in chrome --headless mode.For which I have added an entry in default_apps/external_extensions.json for property external_update_url. (Ref : Link)
When I run the application with
google-chrome --remote-debugging-port=9222 --disable-gpu
I am able to see that the adblock plugin is active and blocking adds,While when I tried to run
google-chrome --headless --remote-debugging-port=9222 --disable-gpu
(i.e in headless mode) the adblock plugin is not running or enabled.
I verified the fact by taking screenshot of viewport in both modes. Can anyone please help me to run the adblock plus extension for headless mode.