Skip to content

Commit ed96d9a

Browse files
authored
Merge pull request #35 from LambdaTest/stage
Release PR for sessionId implementation
2 parents 27384dc + b931229 commit ed96d9a

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

selenium/lambdatest_selenium_driver/smartui.py

+5
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ def smartui_snapshot(driver, name,options={}):
1717
resp = fetch_dom_serializer()
1818
driver.execute_script(resp['data']['dom'])
1919

20+
# Get the sessionId from the driver
21+
session_id = driver.session_id
22+
if session_id:
23+
options['sessionId'] = session_id # Append sessionId to options
24+
2025
# Serialize and capture the DOM
2126
dom = driver.execute_script(
2227
f"""

selenium/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
setup(
99
name="lambdatest-selenium-driver",
10-
version="1.0.4",
10+
version="1.0.5",
1111
author="LambdaTest <[email protected]>",
1212
description="Python Selenium SDK for testing with Smart UI",
1313
long_description=long_description,
+1-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
import os
22

33
def get_smart_ui_server_address():
4-
if not os.getenv('SMARTUI_SERVER_ADDRESS'):
5-
raise Exception('SmartUI server address not found')
6-
return os.getenv('SMARTUI_SERVER_ADDRESS')
7-
8-
4+
return os.getenv('SMARTUI_SERVER_ADDRESS', 'http://localhost:49152')

utils/lambdatest_sdk_utils/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.0.2'
1+
__version__ = '1.0.3'

0 commit comments

Comments
 (0)