This won't work for PhantomJS. PhantomJS IS a browser but it's headless, hence the coloring is "bash" coloring rather than "css" coloring.