From 83bb075ba0f5f2b572fb945133ff422a67e485c2 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) (cherry picked from commit 92926768d3dfeb16bbb8bcc3c61ca5fce111bf0c) --- airgun/session.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/airgun/session.py b/airgun/session.py index c29f72979..a2e1051b5 100644 --- a/airgun/session.py +++ b/airgun/session.py @@ -193,6 +193,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 @@ -273,6 +274,7 @@ def _prepare_browser(self, url): self.browser = AirgunBrowser(selenium_browser, self) LOGGER.info(f'Session Id For {self.name}: {selenium_browser.session_id}') LOGGER.info(f'Setting initial URL to {url}') + self.ui_session_id = selenium_browser.session_id self.browser.url = url