I'm implementing codeception with help of buildbot and phantomjs.
This all works just fine, buildbot fires up codeception when a commit is made, and I have phantomjs running in the background accepting connections from codeception with de WebDriver.
The problem however is that phantomjs is saving cookies, so my first test, which is logging in, always fails because the user is already logged in.
How can I make phantomjs reset it's cookies after each test run?
I tried restarting phantomjs and this fixes the issue, but I don't know how to do this with buildbot. Plus it seems like overkill for this specific problem..