You are here

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

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

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

Varbase Context #varbase.

Example #1: And I resize the current window to width="1280" and height="600" Example #2: 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 1580

Class

VarbaseContext
Defines application features from the specific context.

Code

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