Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 71675ab

Browse files
Smart UI Sample added
1 parent 871d3fe commit 71675ab

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

‎lambdatest_test.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,20 @@ def setUp(self):
1818
"build": "UnitTest-Selenium-Sample",
1919
"name": "UnitTest-Selenium-Test",
2020
"platformName": "Windows 11",
21-
"selenium_version": "4.0.0"
21+
"selenium_version": "4.0.0",
22+
#Enable Smart UI Project
23+
# "smartUI.project": "<Project Name>",
2224
},
2325
"browserName": "Chrome",
2426
"browserVersion": "latest",
2527
}
2628

29+
# Steps to run Smart UI project (https://beta-smartui.lambdatest.com/)
30+
# Step - 1 : Change the hub URL to @beta-smartui-hub.lambdatest.com/wd/hub
31+
# Step - 2 : Add "smartUI.project": "<Project Name>" as a capability above
32+
# Step - 3 : Run "driver.execute_script("smartui.takeScreenshot")" command wherever you need to take a screenshot
33+
# Note: for additional capabilities navigate to https://www.lambdatest.com/support/docs/test-settings-options/
34+
2735
self.driver = webdriver.Remote(
2836
command_executor="http://hub.lambdatest.com:80/wd/hub",
2937
desired_capabilities=desired_caps)
@@ -49,6 +57,9 @@ def test_unit_user_should_able_to_add_item(self):
4957
check_box_two = driver.find_element_by_name("li2")
5058
check_box_two.click()
5159

60+
#Take Smart UI screenshot
61+
#driver.execute_script("smartui.takeScreenshot")
62+
5263
# Enter item in textfield
5364
textfield = driver.find_element_by_id("sampletodotext")
5465
textfield.send_keys("Yey, Let's add it to list")

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /