You are here

public function VarbaseContext::resizeTheCurrentWindowToWidthAndHeight in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 8.7

Same name and namespace in other branches
  1. 8.8 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::resizeTheCurrentWindowToWidthAndHeight()
  2. 9.0.x tests/features/bootstrap/VarbaseContext.php \VarbaseContext::resizeTheCurrentWindowToWidthAndHeight()

#varbase: Resize the current window browser to a selected width and height.

Example #1: And I resize the current window to width="1280" and height="600"

@Given /^I resize the current window to width="([^"]*)" and height="([^"]*)"$/

File

tests/features/bootstrap/VarbaseContext.php, line 1451

Class

VarbaseContext
Defines application features from the specific context.

Code

public function resizeTheCurrentWindowToWidthAndHeight($width, $height) {
  $this
    ->getSession()
    ->resizeWindow((int) $width, (int) $height, 'current');
}