/** * Check if popup window is focused * * @return bool */ private function isPopupFocused() { return $this->driver->getWindowHandle() == self::WINDOW_NAME; }