I have run t task browser library 12.30 inside a container as on-demand cloud instance. It works great, it is cheap. The only thing that costs a little seems to be the traffic when the tasks calls other websites.
So I wonder, if I can somehow manage to:
Open a Page
and block downloading images in that page (I am only interested in the source code or text anyway)
in order to reduce traffic.
There is always the brute force way, disable dns in your container, then put the site(s) you want to test in the host file. If there is is no way to resolve the address of other sites there is no way to download the images. (this is basically how ad blockers work)
Hi Dave!
Chrome has a host-mapping command line option - command line - Host-rules google chrome, adding configuration - Stack Overflow
So you can, for example, set all domain names of sites hosting images to localhost.
You can also solve your problem outside of RF, by tuning firewall rules to drop transfer of image files from sites you want.
AFAIK New Browser has a args argument. It’s a list of command-line options.
Just need to add to that list something like this: "--host-resolver-rules=", "MAP * 127.0.0.1, EXCLUDE *my.cool.site*"
That way, everything that not from my.cool.site domain will be blocked