Skip to content
Merged
Show file tree
Hide file tree
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: 1 addition & 1 deletion selenium/lambdatest_selenium_driver/smartui.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def smartui_snapshot(driver, name,options={}):
if not name:
raise Exception('The `snapshotName` argument is required.')
if is_smartui_enabled() is False:
raise Exception("SmartUI server is not running.")
raise Exception("Cannot find SmartUI server.")

resp = fetch_dom_serializer()
driver.execute_script(resp['data']['dom'])
Expand Down
4 changes: 3 additions & 1 deletion utils/lambdatest_sdk_utils/constants.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import os

def get_smart_ui_server_address():
return os.getenv('SMARTUI_SERVER_ADDRESS', 'http://localhost:8080')
if not os.getenv('SMARTUI_SERVER_ADDRESS'):
raise Exception('SmartUI server address not found')
return os.getenv('SMARTUI_SERVER_ADDRESS')

def get_pkg_name():
return "@lambdatest/python-selenium-driver"