Skip to content

Comment on Running Headless Selenium with Chrome

Comments

How does it differ from PhantomJS/CasperJS (headless webkit)? I have been using these for a while and they can do pretty much everything that you can do in a browser.

I have a 1/2 written post about this exactly. I took it out because it would have made this post too long. But TLDR: I found a few edge cases where using a real browser was easier to use than a headless toolkit. Definitely will be my next post.

Simulating clicking/mouse move events can be a pain for PhantomJS/CasperJS.

PhantomJS also runs some ancient version of WebKit, which means it is not compatible with modern browsers.

The point of testing in a real browser is to test in a real browser because your users use a real browser. Testing in a headless browser is faster, but proves nothing.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.