diff --git a/airgun/session.py b/airgun/session.py index 0ffbd2148..969328166 100644 --- a/airgun/session.py +++ b/airgun/session.py @@ -192,6 +192,7 @@ def __init__( self._login = login self.navigator = None self.browser = None + self.ui_session_id = None def __call__(self, user=None, password=None, session_cookie=None, url=None, login=None): """Stores provided values. This allows tests to provide additional @@ -271,6 +272,7 @@ def _prepare_browser(self, url): selenium_browser = self._factory.get_browser() self.browser = AirgunBrowser(selenium_browser, self) LOGGER.info(f'Setting initial URL to {url}') + self.ui_session_id = selenium_browser.session_id self.browser.url = url