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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
venv
.idea
DS_Store
7 changes: 3 additions & 4 deletions lambdatest.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def test_demo_site(self):
# Url
print("Loading URL")
driver.get(
"https://stage-lambda-devops-use-only.lambdatestinternal.com/To-do-app/index.html"
"https://lambdatest.github.io/sample-todo-app/"
)

# Let's click on a element
Expand All @@ -76,14 +76,13 @@ def test_demo_site(self):
print("Added LambdaTest checkbox")

# print the heading
search = driver.find_element(By.CSS_SELECTOR, ".container h2")
search = driver.find_element(By.XPATH, "//h1[contains(@class,'font-bold')]")
assert search.is_displayed(), "heading is not displayed"
print(search.text)
search.click()
driver.implicitly_wait(3)

# Let's download the invoice
heading = driver.find_element(By.CSS_SELECTOR, ".container h2")
heading = driver.find_element(By.XPATH, "//h1[contains(@class,'font-bold')]")
if heading.is_displayed():
heading.click()
driver.execute_script("lambda-status=passed")
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
urllib3==1.26.5
selenium==4.25.0
urllib3==2.5.0
selenium==4.38.0
5 changes: 2 additions & 3 deletions selenium-3/lambdatest.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,13 @@ def test_demo_site(self):
print("Added LambdaTest checkbox")

# print the heading
search = driver.find_element(By.CSS_SELECTOR, ".container h2")
search = driver.find_element(By.XPATH, "//h1[contains(@class,'font-bold')]")
assert search.is_displayed(), "heading is not displayed"
print(search.text)
search.click()
driver.implicitly_wait(3)

# Let's download the invoice
heading = driver.find_element(By.CSS_SELECTOR, ".container h2")
heading = driver.find_element(By.XPATH, "//h1[contains(@class,'font-bold')]")
if heading.is_displayed():
heading.click()
driver.execute_script("lambda-status=passed")
Expand Down