public function WindowTrait::resizeWindow in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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
File
- vendor/
jcalderonzumba/ mink-phantomjs-driver/ src/ WindowTrait.php, line 56
Class
- WindowTrait
- Class WindowTrait @package Zumba\Mink\Driver
Namespace
Zumba\Mink\DriverCode
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);
}