Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[6.13.z] added the ui_sesion_id attribute for video-session (#1038) #1047

Merged
merged 1 commit into from
Nov 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions airgun/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down
Loading