Skip to content
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
14 changes: 12 additions & 2 deletions lambdatest.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,25 @@ def setUp(self):
"platformName": "Windows 11",
"selenium_version": "4.0.0",
"console": 'true', # Enable or disable console logs
"network": 'true' # Enable or disable network logs
"network": 'true', # Enable or disable network logs
#Enable Smart UI Project
#"smartUI.project": "<Project Name>"
},
"browserName": "firefox",
"browserVersion": "latest",
}

# Steps to run Smart UI project (https://beta-smartui.lambdatest.com/)
# Step - 1 : Change the hub URL to @beta-smartui-hub.lambdatest.com/wd/hub
# Step - 2 : Add "smartUI.project": "<Project Name>" as a capability above
# Step - 3 : Run "driver.execute_script("smartui.takeScreenshot")" command wherever you need to take a screenshot
# Note: for additional capabilities navigate to https://www.lambdatest.com/support/docs/test-settings-options/

self.driver = webdriver.Remote(
command_executor="http://{}:{}@hub.lambdatest.com/wd/hub".format(
username, access_key),
desired_capabilities=desired_caps)


# tearDown runs after each test case


Expand All @@ -57,6 +64,9 @@ def test_demo_site(self):
location.click()
print("Location is selected as Bali.")

#Take Smart UI screenshot
#driver.execute_script("smartui.takeScreenshot")

# Let's select the number of guests
driver.find_element(By.ID, "headlessui-listbox-button-5").click()
guests = driver.find_element(By.ID, "2")
Expand Down