From 598c8769e8bc3772ac6d9eccc9fe1a295146f567 Mon Sep 17 00:00:00 2001 From: Omkar Khatavkar Date: Fri, 24 Nov 2023 14:10:12 +0530 Subject: [PATCH] added the ui_sesion_id attribute for video-session (#1038) --- airgun/session.py | 2 ++ 1 file changed, 2 insertions(+) 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