src/DrupalExtension/Context/ResponsiveContext.php
public function assertDeviceScreenResize($device) {
    $resolution = $this->getDeviceResolution($device);
    $this->getSession()->resizeWindow((int) $resolution->getWidth(), (int) $resolution->getHeight(), 'current');
  }
public function assertDeviceScreenResize($device) {
    $resolution = $this->getDeviceResolution($device);
    $this->getSession()->resizeWindow((int) $resolution->getWidth(), (int) $resolution->getHeight(), 'current');
  }
public function assertDeviceScreenResize ( $ device ) { $ resolution = $ this -> getDeviceResolution ( $ device ) ; $ this -> getSession ( ) -> resizeWindow ( ( int ) $ resolution -> getWidth ( ) , ( int ) $ resolution -> getHeight ( ) , 'current' ) ; }
Resize browser window according to the specified device.

@param string $device
Device name as specified in behat.yml.

@Given I view the site on a :device device
Resize browser window according to the specified device .