Yes that would be a useful abstraction maybe we add a function to the [shared.js](https://github.com/guardian/frontend/blob/master/integration-tests/casper/tests/shared.js) for this.