Selenium vs PhantomJS, CasperJS, or ZombieJS do almost the same thing, automate browsers, but why should you use one over the other? It turns out that there are some use cases when using Selenium might give you advantages over a headless toolkit.
I’m not saying that I always use Selenium. I prefer to use PhantomJS because it would have less overhead and performs better. However, because of specific edge cases I needed to use a real browser where the headless toolkit just didn’t cut it.
(This is a follow up post to Running Headless Selenium with Chrome.)