Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions selenium/lambdatest_selenium_driver/smartui.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ def smartui_snapshot(driver, name,options={}):
resp = fetch_dom_serializer()
driver.execute_script(resp['data']['dom'])

# Get the sessionId from the driver
session_id = driver.session_id
if session_id:
options['sessionId'] = session_id # Append sessionId to options

# Serialize and capture the DOM
dom = driver.execute_script(
f"""
Expand Down
2 changes: 1 addition & 1 deletion selenium/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setup(
name="lambdatest-selenium-driver",
version="1.0.4",
version="1.0.5",
author="LambdaTest <keys@lambdatest.com>",
description="Python Selenium SDK for testing with Smart UI",
long_description=long_description,
Expand Down
6 changes: 1 addition & 5 deletions utils/lambdatest_sdk_utils/constants.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import os

def get_smart_ui_server_address():
if not os.getenv('SMARTUI_SERVER_ADDRESS'):
raise Exception('SmartUI server address not found')
return os.getenv('SMARTUI_SERVER_ADDRESS')


return os.getenv('SMARTUI_SERVER_ADDRESS', 'http://localhost:49152')
2 changes: 1 addition & 1 deletion utils/lambdatest_sdk_utils/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.0.2'
__version__ = '1.0.3'