You are here

public function WindowTrait::resizeWindow in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/jcalderonzumba/mink-phantomjs-driver/src/WindowTrait.php \Zumba\Mink\Driver\WindowTrait::resizeWindow()

Resizing a window with specified size

Parameters

int $width:

int $height:

string $name:

Throws

DriverException

File

vendor/jcalderonzumba/mink-phantomjs-driver/src/WindowTrait.php, line 56

Class

WindowTrait
Class WindowTrait @package Zumba\Mink\Driver

Namespace

Zumba\Mink\Driver

Code

public function resizeWindow($width, $height, $name = null) {
  if ($name !== null) {

    //TODO: add this on the phantomjs stuff
    throw new DriverException("Resizing other window than the main one is not supported yet");
  }
  $this->browser
    ->resize($width, $height);
}