Open a new browser window.

        Args:
            private (bool): Optional parameter to open a private browsing
                window. Defaults to False.

        Returns:
            :py:class:`BrowserWindow`: Opened window.

def open_window(self, private=False):
        """Open a new browser window.

        Args:
            private (bool): Optional parameter to open a private browsing
                window. Defaults to False.

        Returns:
            :py:class:`BrowserWindow`: Opened window.

        """
        handles_before = self.selenium.window_handles
        self.switch_to()

        with self.selenium.context(self.selenium.CONTEXT_CHROME):
            # Opens private or non-private window
            self.selenium.find_element(*self._file_menu_button_locator).click()
            if private:
                self.selenium.find_element(
                    *self._file_menu_private_window_locator
                ).click()
            else:
                self.selenium.find_element(
                    *self._file_menu_new_window_button_locator
                ).click()

        return self.wait.until(
            expected.new_browser_window_is_opened(self.selenium, handles_before),
            message="No new browser window opened",
        )