I must admit I am not a fan of headless browsers for a number of reasons:
Continue reading “Real vs Headless Browsers for Automated Acceptance Tests”
As part of my trial for my current role at Automattic, I was tasked with implementing some e2e acceptance tests using my choice of library/framework/language.
GhostDriver has been released which means it is now easy to run reliable headless WebDriver tests on Mac OSX.
Steps to get working on OSX
- First make sure you have homebrew installed
brew install phantomjs
which should install PhantomJS 1.8.1 or newer
- Run irb and start using GhostDriver!
b = Watir::Browser.new :phantomjs
And yes, in case you’re wondering, it does screenshots!