/** * {@inheritdoc} */ public function maximizeWindow($name = null) { if (null !== $name) { throw new UnsupportedDriverActionException('Maximizing a non-default window is not supported by %s', $this); } $this->browser->windowMaximize(); }