Following on from my previous post Headless Behat/Mink testing with Sahi and PhantomJS, I wanted to complete the final part of Ryan’s post concerning capturing a screenshot of the page which has failed a test. I had hoped this would be fairly simple, but the march of technology has made Ryan’s post almost obsolete. Also, I am not fan of his technique, with involves injecting an element into the page from the Phantom setup script. This causes problems if your tests want to move between pages. read more
Pi Blog Portal