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

@param string $size
Size in pixel.

@throws \Behat\Mink\Exception\ExpectationException

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