src/DrupalExtension/Context/ResponsiveContext.php
public function assertBrowserWindowHeight($size) {
    $actual = $this->getSession()->evaluateScript('return window.outerHeight;');
    if ($actual != $size) {
      throw new ExpectationException("Browser window height expected to be {$size} but it is {$actual} instead.", $this->getSession());
    }
  }
public function assertBrowserWindowHeight($size) {
    $actual = $this->getSession()->evaluateScript('return window.outerHeight;');
    if ($actual != $size) {
      throw new ExpectationException("Browser window height expected to be {$size} but it is {$actual} instead.", $this->getSession());
    }
  }
public function assertBrowserWindowHeight ( $ size ) { $ actual = $ this -> getSession ( ) -> evaluateScript ( 'return window.outerHeight;' ) ; if ( $ actual != $ size ) { throw new ExpectationException ( "Browser window height expected to be {$size} but it is {$actual} instead." , $ this -> getSession ( ) ) ; } }
Resize browser window height.

@param string $size
Size in pixel.

@throws \Behat\Mink\Exception\ExpectationException

@Then the browser window height should be :size
Resize browser window height .