public function initialize(ContextInterface $context) { $initializer = $this; $context->setBrowserInformations(function () use($initializer) { $browser = $initializer->getBrowser(); if (true === $this->browserFullScreen) { $browser->getWindows()->maximize(); } return $browser; }, $this->baseUrl, $this->timeout); }