function Selenium2Driver::resizeWindow
Overrides CoreDriver::resizeWindow
File
-
vendor/
lullabot/ mink-selenium2-driver/ src/ Selenium2Driver.php, line 1118
Class
- Selenium2Driver
- Selenium2 driver.
Namespace
Behat\Mink\DriverCode
public function resizeWindow(int $width, int $height, ?string $name = null) {
$window = $this->getWebDriverSession()
->window($name ?: 'current');
if ($this->isW3C()) {
\assert($window instanceof Window);
$window->postRect(array(
'width' => $width,
'height' => $height,
));
}
else {
\assert($window instanceof LegacyWindow);
$window->postSize(array(
'width' => $width,
'height' => $height,
));
}
}