This applies to selenium2 driver.


FeatureContext.php


namespace Football\TeamBundle\Features\Context;

use Behat\MinkExtension\Context\MinkContext;

class FeatureContext extends MinkContext
{
/**
* If responsive design is in use, this method is compulsory.
*
* @BeforeScenario
*/
public function resizeWindow()
{
$this->getSession()->resizeWindow(1440, 900, 'current');
}
}