Resize browser window correctly when using PhantomJSDriver